3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "Foo"; $b = "Bar"; function testIt (&$b){ $b = "Yay!"; } testIt(&$a); testIt($b); print "$a\n"; print "$b\n";
Output for 5.4.0 - 5.4.30
Fatal error: Call-time pass-by-reference has been removed in /in/Becfb on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/Becfb on line 8 Yay! Yay!