3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array ( '1' => A, '2' => B, '3' => C ); $array2 = array ( '1' => A, '4' => B, '5' => D ); $array3 = array ( '5' => A, '6' => E, '7' => D ); $array4 = array ( '4' => A, '7' => B, '10' => C ); function test() { $count = func_get_args(); print_r($count); }
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 4 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 5 Notice: Use of undefined constant C - assumed 'C' in /in/JAXLO on line 6 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 10 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 11 Notice: Use of undefined constant D - assumed 'D' in /in/JAXLO on line 12 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 16 Notice: Use of undefined constant E - assumed 'E' in /in/JAXLO on line 17 Notice: Use of undefined constant D - assumed 'D' in /in/JAXLO on line 18 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 22 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 23 Notice: Use of undefined constant C - assumed 'C' in /in/JAXLO on line 24
Output for 4.3.0 - 5.6.28
Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 4 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 5 Notice: Use of undefined constant C - assumed 'C' in /in/JAXLO on line 7 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 10 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 11 Notice: Use of undefined constant D - assumed 'D' in /in/JAXLO on line 13 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 16 Notice: Use of undefined constant E - assumed 'E' in /in/JAXLO on line 17 Notice: Use of undefined constant D - assumed 'D' in /in/JAXLO on line 19 Notice: Use of undefined constant A - assumed 'A' in /in/JAXLO on line 22 Notice: Use of undefined constant B - assumed 'B' in /in/JAXLO on line 23 Notice: Use of undefined constant C - assumed 'C' in /in/JAXLO on line 25