3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3,4); $b = array(5,6); $c = array(a,b,c); echo $a;
Output for 5.4.0 - 7.1.0
Notice: Use of undefined constant a - assumed 'a' in /in/nC02X on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/nC02X on line 4 Notice: Use of undefined constant c - assumed 'c' in /in/nC02X on line 4 Notice: Array to string conversion in /in/nC02X on line 6 Array
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant a - assumed 'a' in /in/nC02X on line 4 Notice: Use of undefined constant b - assumed 'b' in /in/nC02X on line 4 Notice: Use of undefined constant c - assumed 'c' in /in/nC02X on line 4 Array