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($a[]);
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.7 - 5.6.13
Fatal error: Cannot use [] for reading in /in/3tMqc on line 18
Process exited with code 255.

preferences:
182.85 ms | 1395 KiB | 63 Q