3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(&$var) { $var++; } $b = 5; foo($a=$b); echo $a;
based on TR6Di
Output for 7.0.0 - 7.3.0beta1
Notice: Only variables should be passed by reference in /in/ukWUH on line 10 5
Output for hhvm-3.22.0
Strict Warning: Only variables should be passed by reference in /in/ukWUH on line -1 5
Output for hhvm-3.18.5 - 3.21.3
Strict Warning: Only variables should be passed by reference in /in/ukWUH on line 10 5
Output for 5.6.0 - 5.6.30
Strict Standards: Only variables should be passed by reference in /in/ukWUH on line 10 5