3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr['01'] = 'sdf'; $arr['9'] = 'sdf2'; $arr['10'] = 'sdf3'; $arr['11'] = 'sdf3'; $arr['jj'] = 'sdf3'; $arr2[1] = 'sdf'; $arr2[9] = 'sdf2'; $arr2[10] = 'sdf3'; $arr2[11] = 'sdf3'; $newArray = array_merge(array(""=>""), $arr); $good_array = array(""=>"") + $arr; print_r($newArray); print_r($good_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LCm72
function name:  (null)
number of ops:  33
compiled vars:  !0 = $arr, !1 = $arr2, !2 = $newArray, !3 = $good_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, '01'
          2        OP_DATA                                                  'sdf'
    5     3        ASSIGN_DIM                                               !0, 9
          4        OP_DATA                                                  'sdf2'
    7     5        ASSIGN_DIM                                               !0, 10
          6        OP_DATA                                                  'sdf3'
    8     7        ASSIGN_DIM                                               !0, 11
          8        OP_DATA                                                  'sdf3'
   10     9        ASSIGN_DIM                                               !0, 'jj'
         10        OP_DATA                                                  'sdf3'
   12    11        ASSIGN_DIM                                               !1, 1
         12        OP_DATA                                                  'sdf'
   13    13        ASSIGN_DIM                                               !1, 9
         14        OP_DATA                                                  'sdf2'
   15    15        ASSIGN_DIM                                               !1, 10
         16        OP_DATA                                                  'sdf3'
   16    17        ASSIGN_DIM                                               !1, 11
         18        OP_DATA                                                  'sdf3'
   18    19        INIT_FCALL                                               'array_merge'
         20        SEND_VAL                                                 <array>
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !2, $14
   20    24        ADD                                              ~16     <array>, !0
         25        ASSIGN                                                   !3, ~16
   22    26        INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
   23    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1396 KiB | 17 Q