3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //Source: https://bugs.php.net/bug.php?id=62437 function output($buffer) { global $object; return $buffer . $object; } ob_start('output'); $object = 'ertretre'; echo "foo "; //$test = $object;
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
foo ertretre
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/r9kKp on line 14
Process exited with code 255.