3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ ["name" => "Gus", "age" => 32], ["name" => "Jon", "age" => 44], ["name" => "Bob", "age" => 32], ["name" => "Jim", "age" => 103], ["name" => "Ted", "age" => 19], ["name" => "Ben", "age" => 32], ]; foreach ($array as &$row) { $row['order'] = &$ref[$row['age']]; } var_export($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 9
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/DDsuL
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $row, !2 = $ref
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   12     1      > FE_RESET_RW                                          $4      !0, ->9
          2    > > FE_FETCH_RW                                                  $4, !1, ->9
   13     3    >   FETCH_DIM_R                                          ~6      !1, 'age'
          4        FETCH_DIM_W                                          $7      !2, ~6
          5        MAKE_REF                                             $8      $7
          6        FETCH_DIM_W                                          $5      !1, 'order'
          7        ASSIGN_REF                                                   $5, $8
   12     8      > JMP                                                          ->2
          9    >   FE_FREE                                                      $4
   16    10        INIT_FCALL                                                   'var_export'
         11        SEND_VAR                                                     !0
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.33 ms | 1992 KiB | 14 Q