3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = []; $test["12345"] = 'hello'; $test["abcde"] = 'goodbye'; //$test = array_merge($test, []); $test = $test + []; var_dump($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GDjLr
function name:  (null)
number of ops:  11
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN_DIM                                               !0, 12345
          2        OP_DATA                                                  'hello'
    8     3        ASSIGN_DIM                                               !0, 'abcde'
          4        OP_DATA                                                  'goodbye'
   12     5        ADD                                              ~4      !0, <array>
          6        ASSIGN                                                   !0, ~4
   14     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
220.71 ms | 1394 KiB | 15 Q