3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array( 'c' => 100, 'a' => 300, 'b' => 50, 'd' => 250); arsort( &$x ) var_dump( $x );
Output for 5.4.18
Fatal error: Call-time pass-by-reference has been removed in /in/Okcbd on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/E9WCh on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Deprecated: Call-time pass-by-reference has been deprecated in /in/E9WCh on line 4 Parse error: syntax error, unexpected T_STRING in /in/E9WCh on line 5
Process exited with code 255.