3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => 'val1', 2 => 'val2', 3.4 => 'val3', 5 => 'val4', 7 => 'val5' ); $array = [...$array]; var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gVrY8
function name:  (null)
number of ops:  8
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_ARRAY                                       ~2      
          2        ADD_ARRAY_UNPACK                                 ~2      !0
          3        ASSIGN                                                   !0, ~2
   12     4        INIT_FCALL                                               'var_export'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.45 ms | 1394 KiB | 15 Q