3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL ^ E_WARNING); function a($x){ $x += 1; } $y = 5; a(&$y); echo $y;
Output for 5.4.0 - 5.4.28
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of a(). in /in/hhWTO on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of a(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /in/hhWTO on line 11 6

preferences:
190.03 ms | 1395 KiB | 66 Q