3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 'mpevOJHfwpnvKJGeljb' => array( 'data' => 'foo', 'data1' => 'bar' ) ); $arr = $arr[0]; echo $arr['data1']; // bar
Output for 5.3.0 - 7.1.0
Notice: Undefined offset: 0 in /in/5hFhQ on line 10
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.2.17
Notice: Undefined offset: 0 in /in/5hFhQ on line 10
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/5hFhQ on line 12
Process exited with code 255.