3v4l.org

run code in 300+ PHP versions simultaneously
<?php $myArray = array( "0" => array("0" => "test1", "1" => "test2"), "1" => array("0" => "test3", "1" => "test4")); $myArray["45"] = $myArray["0"]; unset($myArray["0"]); $myArray["51"] = $myArray["1"]; unset($myArray["1"]); var_dump($myArray);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qBT05
function name:  (null)
number of ops:  13
compiled vars:  !0 = $myArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_DIM_R                                      ~3      !0, 0
          2        ASSIGN_DIM                                               !0, 45
          3        OP_DATA                                                  ~3
    7     4        UNSET_DIM                                                !0, 0
    8     5        FETCH_DIM_R                                      ~5      !0, 1
          6        ASSIGN_DIM                                               !0, 51
          7        OP_DATA                                                  ~5
    9     8        UNSET_DIM                                                !0, 1
   10     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.55 ms | 1394 KiB | 15 Q