3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(&$abc) { $abc = 'foo'; } foo($bar = 'bar'); var_dump($bar);
Output for 7.0.0 - 7.2.0
Notice: Only variables should be passed by reference in /in/mp5FH on line 7 string(3) "bar"
Output for 5.3.18 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/mp5FH on line 7 string(3) "bar"