3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( 0=>array( "id"=>"73", "position"=>"1" ), 1=>array( "id"=>"58", "position"=>"2" ), 2=>array( "id"=>"82", "position"=>"3" ), 3=>array( "id"=>"84", "position"=>"4" ) ); $array = array_combine(range(1, count($array)), $array); print_r($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k0XTj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   22     1        INIT_FCALL                                                   'array_combine'
          2        INIT_FCALL                                                   'range'
          3        SEND_VAL                                                     1
          4        COUNT                                                ~2      !0
          5        SEND_VAL                                                     ~2
          6        DO_ICALL                                             $3      
          7        SEND_VAR                                                     $3
          8        SEND_VAR                                                     !0
          9        DO_ICALL                                             $4      
         10        ASSIGN                                                       !0, $4
   24    11        INIT_FCALL                                                   'print_r'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.18 ms | 2394 KiB | 16 Q