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 BEorR
Output for 5.4.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/5MmLu on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/5MmLu on line 6 -------------- Notice: Array to string conversion in /in/5MmLu on line 8 Array Notice: Undefined offset: 0 in /in/5MmLu on line 9
Output for 5.3.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/5MmLu on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/5MmLu on line 6 --------------Array Notice: Undefined offset: 0 in /in/5MmLu on line 9
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant a - assumed 'a' in /in/5MmLu on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/5MmLu on line 6 --------------Array Notice: Undefined offset: 0 in /in/5MmLu on line 9