3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 0; function inc($var) { $var++; } var_dump(& $var); inc($var); var_dump($var);
Output for 5.4.0 - 5.4.15
Fatal error: Call-time pass-by-reference has been removed in /in/ErNbS on line 6
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/QTL1g on line 6 &int(0) int(0)
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/ErNbS on line 6 &int(0) int(0)