3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // $a = array('a' => 'kaushik', 'b' => 'thirthappa'); echo '--------------'; echo $a; echo $a[0];
based on 5MmLu
Output for 5.4.0 - 7.1.0
-------------- Notice: Array to string conversion in /in/WQjCM on line 8 Array Notice: Undefined offset: 0 in /in/WQjCM on line 9
Output for 5.3.0 - 5.3.29
--------------Array Notice: Undefined offset: 0 in /in/WQjCM on line 9
Output for 4.3.0 - 5.2.17
--------------Array Notice: Undefined offset: 0 in /in/WQjCM on line 9