3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // $a = array(a => 'kaushik', b => 'thirthappa'); echo '--------------'; echo $a; echo $a->a;
based on LK7OK
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/BEorR on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/BEorR on line 6 -------------- Notice: Array to string conversion in /in/BEorR on line 8 Array Notice: Trying to get property of non-object in /in/BEorR on line 9
Output for hhvm-3.12.0
Notice: Use of undefined constant a - assumed 'a' in /in/BEorR on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/BEorR on line 6 -------------- Notice: Array to string conversion in /in/BEorR on line 8 Array Notice: Cannot access property on non-object in /in/BEorR on line 9
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/BEorR on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/BEorR on line 6 --------------Array Notice: Trying to get property of non-object in /in/BEorR on line 9
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant a - assumed 'a' in /in/BEorR on line 6 Notice: Use of undefined constant b - assumed 'b' in /in/BEorR on line 6 --------------Array