3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = [0=> 'zero', cheese=>'three', 2=>'two']; print_r($test); $test = array_merge($test); print_r($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mvB7D
function name:  (null)
number of ops:  16
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~1      'zero', 0
          1        FETCH_CONSTANT                                   ~2      'cheese'
          2        ADD_ARRAY_ELEMENT                                ~1      'three', ~2
          3        ADD_ARRAY_ELEMENT                                ~1      'two', 2
          4        ASSIGN                                                   !0, ~1
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    6     8        INIT_FCALL                                               'array_merge'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    8    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.28 ms | 1394 KiB | 17 Q