https://github.com/nylen/phpegjs/blob/v1.0.0-beta7/src/passes/generate-php.js#L650-L652 This is currently broken - it needs to use `$this->input_substr` instead of `substr`. Also needs tests.