3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = 18; function f( &$p ) { $p = 36; return $p; } echo call_user_func(‘f’, &$v);
Output for 5.4.13
Fatal error: Call-time pass-by-reference has been removed in /in/K4eED on line 7
Process exited with code 255.
Output for 5.4.0 - 5.4.12
Fatal error: Call-time pass-by-reference has been removed in Mueai on line 7
Process exited with code 255.
Output for 5.3.28 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/Mueai on line 7 Notice: Use of undefined constant ‘f’ - assumed '‘f’' in /in/Mueai on line 7 Warning: call_user_func() expects parameter 1 to be a valid callback, function '‘f’' not found or invalid function name in /in/Mueai on line 7
Output for 5.3.23 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/K4eED on line 7 Notice: Use of undefined constant ‘f’ - assumed '‘f’' in /in/K4eED on line 7 Warning: call_user_func() expects parameter 1 to be a valid callback, function '‘f’' not found or invalid function name in /in/K4eED on line 7
Output for 5.3.0 - 5.3.22
Deprecated: Call-time pass-by-reference has been deprecated in Mueai on line 7 Notice: Use of undefined constant ‘f’ - assumed '‘f’' in Mueai on line 7 Warning: call_user_func() expects parameter 1 to be a valid callback, function '‘f’' not found or invalid function name in Mueai on line 7

preferences:
178.87 ms | 1395 KiB | 51 Q