3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function func1() { $a = 5; return ++$a . $a++; } function func2() { $x = 5; $y = &$x; //Note that y IS NEVER USED return ++$x . $x++; } echo func1() . "\n"; echo func2() . "\n";
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
66 66
Output for 4.3.0 - 5.6.28
66 76