3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function add_something(&$var, $something) { $result = $var + $something; return (int)$result; } $chiffre = 1; echo add_something(&$chiffre,3); echo $chiffre;
Output for 5.4.0 - 5.4.19
Fatal error: Call-time pass-by-reference has been removed in /in/Xh8kN on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/Xh8kN on line 9 41