3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => array ( $this => 3, // instead 0 => 3, 'name' => 'three', ), 1 => array ( $this => 5, // instead 0 => 5, 'name' => 'five', ), 2 => array ( $this => 7, // instead 0 => 7, 'name' => 'seven', ), ); print_r() $arr[0]);
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Parse error: syntax error, unexpected '$arr' (T_VARIABLE) in /in/R6Aj0 on line 18
Process exited with code 255.

preferences:
184.02 ms | 1400 KiB | 63 Q