3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function sort_my_array ($array){ return sort ($array);}$a1 = array (3, 2, 1);var_dump (sort_my_array (&$a1));
Output for 5.4.0 - 5.4.20
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of sort_my_array(). in /in/Gb85a on line 2
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 sort_my_array(). 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/Gb85a on line 2 bool(true)