3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array( 'c' => 100, 'a' => 300, 'b' => 50, 'd' => 250); arsort( $x ); $a array_slice($x, 0, 3); var_dump( $a );
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected 'array_slice' (T_STRING) in /in/RODoI on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_STRING in /in/RODoI on line 5
Process exited with code 255.