3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function &pre_inc(&$a) { return ++$a; } $a = 5; $b = &$a; $c = &pre_inc($a); $d = $b++; // echo $c.$d; $a = 5; $b = &$a; echo 'result'.++$a.$b++;
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Only variable references should be returned by reference in /in/a5Fmk on line 4 result66
Output for 4.3.0 - 5.5.36, hhvm-3.10.0 - 3.12.0
result66