3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function increment(&$a) { return ++$a; } $a = 10; increment(increment(increment($a))); echo $a;
based on tDljW
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/TUWE2 on line 5 Notice: Only variables should be passed by reference in /in/TUWE2 on line 5 11
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/TUWE2 on line 5 Strict Standards: Only variables should be passed by reference in /in/TUWE2 on line 5 11