3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function a($number) { echo $number, PHP_EOL; return (b($number) * $number); } function b(&$number) { ++$number; echo $number, PHP_EOL; } $a = 5; echo a($a);
based on TrURW
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
5 6 0
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cL9s on line 4 PHP_EOL6 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cL9s on line 11 PHP_EOL0