3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => 'val', 2 => 'val', 3 => 'val', 5 => 'val', 7 => 'val' ); [$array] = [...$array]; var_export($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ST6kG
function name:  (null)
number of ops:  10
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        FETCH_LIST_R                                     $3      ~2, 0
          4        ASSIGN                                                   !0, $3
          5        FREE                                                     ~2
   12     6        INIT_FCALL                                               'var_export'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.21 ms | 1394 KiB | 15 Q