3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array_fill_keys(range(100000, 200000), array_fill_keys(range('a', 'z'), 'plid')); $headerKey = 'y'; $plids = array(); foreach ($data as $key => &$row) { if (isset($row[$headerKey])) { $plids[] = $row[$headerKey]; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
2 jumps found. (Code = 126) Position 1 = 21, Position 2 = 28
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 27
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/vWRGp
function name:  (null)
number of ops:  30
compiled vars:  !0 = $data, !1 = $headerKey, !2 = $plids, !3 = $row, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_fill_keys'
          1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 100000
          3        SEND_VAL                                                 200000
          4        DO_ICALL                                         $5      
          5        SEND_VAR                                                 $5
          6        INIT_FCALL                                               'array_fill_keys'
          7        INIT_FCALL                                               'range'
          8        SEND_VAL                                                 'a'
          9        SEND_VAL                                                 'z'
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        SEND_VAL                                                 'plid'
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !0, $8
    4    17        ASSIGN                                                   !1, 'y'
    5    18        ASSIGN                                                   !2, <array>
    6    19      > FE_RESET_RW                                      $12     !0, ->28
         20    > > FE_FETCH_RW                                      ~13     $12, !3, ->28
         21    >   ASSIGN                                                   !4, ~13
    8    22        ISSET_ISEMPTY_DIM_OBJ                         0          !3, !1
         23      > JMPZ                                                     ~15, ->27
   10    24    >   FETCH_DIM_R                                      ~17     !3, !1
         25        ASSIGN_DIM                                               !2
         26        OP_DATA                                                  ~17
    6    27    > > JMP                                                      ->20
         28    >   FE_FREE                                                  $12
   12    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.88 ms | 1396 KiB | 17 Q