3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'test1' => 'testing1' ), array( 'test2' => array( 1 =>'testing2 ) ); $newarr = array_shift($arr); print_r ($newarr);
Output for 5.4.0 - 5.4.6
Parse error: syntax error, unexpected ''testing2' (T_ENCAPSED_AND_WHITESPACE) in /in/LcKck on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.16
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/LcKck on line 9
Process exited with code 255.

preferences:
166.77 ms | 1395 KiB | 31 Q