3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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[0]);
based on dFAZL
Output for 7.2.0
Warning: Use of undefined constant this - assumed 'this' (this will throw an Error in a future version of PHP) in /in/tQdob on line 6 Warning: Use of undefined constant this - assumed 'this' (this will throw an Error in a future version of PHP) in /in/tQdob on line 10 Warning: Use of undefined constant this - assumed 'this' (this will throw an Error in a future version of PHP) in /in/tQdob on line 14 Notice: Undefined variable: a in /in/tQdob on line 18
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant this - assumed 'this' in /in/tQdob on line 6 Notice: Use of undefined constant this - assumed 'this' in /in/tQdob on line 10 Notice: Use of undefined constant this - assumed 'this' in /in/tQdob on line 14 Notice: Undefined variable: a in /in/tQdob on line 18