3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( 0 => 'val1', 2 => 'val2', 'A' => '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/2IgGh
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.5.0


preferences:
168.03 ms | 2306 KiB | 14 Q