3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ini_set('allow_call_time_pass_reference', true); $list = array("A", "B", "C","D"); reset($list); foreach ($list as $var) { echo current(&$list) . "($var)"; }
Output for 5.4.0 - 5.4.11
Fatal error: Call-time pass-by-reference has been removed in /in/uUitj 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/r7hcE on line 6 Warning: ini_set() has been disabled for security reasons in /in/r7hcE on line 2 B(A)B(B)B(C)B(D)
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/uUitj on line 6 Warning: ini_set() has been disabled for security reasons in /in/uUitj on line 2 B(A)B(B)B(C)B(D)