3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x=10; $y=5; function scambia($a,$b){ $tmp = $a; $a = $b; $b = $tmp; } echo 'x vale '.$x; echo "\n"; //scambia($x,$y); //echo 'adesso x vale '.$x;
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
x vale 10
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/NDkTM on line 18
Process exited with code 255.