3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function byRef(&$r) { $r += 1; } $a = 1; byRef($r = $a); var_dump($r);
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/I9iWF on line 6 int(1)
Output for 5.3.20 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/I9iWF on line 6 int(1)