3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // $a = array(a => 'kaushik', b => 'thirthappa'); echo '--------------'; echo $a;
based on FJhJ2
Output for 7.2.0
Warning: Use of undefined constant a - assumed 'a' (this will throw an Error in a future version of PHP) in /in/LK7OK on line 6 Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/LK7OK on line 6 -------------- Notice: Array to string conversion in /in/LK7OK on line 8 Array
Output for 5.4.0 - 7.1.10
Notice: Use of undefined constant a - assumed 'a' in /in/LK7OK on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/LK7OK on line 6 -------------- Notice: Array to string conversion in /in/LK7OK on line 8 Array
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/LK7OK on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/LK7OK on line 6 --------------Array