3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function &pre_inc(&$a) { return ++$a; } $a = 5; $b = &$a; //echo $a; //echo $b; $c = &pre_inc($a); echo $a; echo $b; $d = $b++; echo $c.$d;
Output for 5.6.8 - 7.3.0rc4
Notice: Only variable references should be returned by reference in /in/lORFW on line 4 6666
Output for 4.3.0 - 5.5.35
6676