3v4l.org

run code in 500+ PHP versions simultaneously
<?php $existing_array = [ "ROWID" =>[ 0 => 0, 1 => 1, 2 => 2 ], "First Name" => [ 0 => "BILLY", 1 => "SALLY", 2 => "TYLER" ], "Last Name" => [ 0 => "RAY", 1 => "SUE", 2 => "TERRIER" ], "Middle Name" =>[ 0 => "B.", 1 => "S.", 2 => "T." ] ]; $expected_array = ['ROWID'=>$existing_array['ROWID'],'First Name'=>$existing_array['First Name'],'Middle Name'=>$existing_array['Middle Name'],'Last Name'=>$existing_array['Last Name']]; print_r($expected_array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GlqXk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $existing_array, !1 = $expected_array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   25     1        FETCH_DIM_R                                          ~3      !0, 'ROWID'
          2        INIT_ARRAY                                           ~4      ~3, 'ROWID'
          3        FETCH_DIM_R                                          ~5      !0, 'First+Name'
          4        ADD_ARRAY_ELEMENT                                    ~4      ~5, 'First+Name'
          5        FETCH_DIM_R                                          ~6      !0, 'Middle+Name'
          6        ADD_ARRAY_ELEMENT                                    ~4      ~6, 'Middle+Name'
          7        FETCH_DIM_R                                          ~7      !0, 'Last+Name'
          8        ADD_ARRAY_ELEMENT                                    ~4      ~7, 'Last+Name'
          9        ASSIGN                                                       !1, ~4
   26    10        INIT_FCALL                                                   'print_r'
         11        SEND_VAR                                                     !1
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.28 ms | 2311 KiB | 14 Q