3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function counter($start, &$stop){ if ($stop > $start){ return; } counter($start-- , ++$stop); } $start = 5; $stop = 2; counter($start,$stop);
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/EN6f5 on line 7 Notice: Only variables should be passed by reference in /in/EN6f5 on line 7 Notice: Only variables should be passed by reference in /in/EN6f5 on line 7 Notice: Only variables should be passed by reference in /in/EN6f5 on line 7
Output for 5.3.19 - 5.6.28