3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array_fill_keys(range(100000, 200000), array('key' => 'plid')); $headerKey = 'key'; $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 = 12, Position 2 = 20
Branch analysis from position: 12
2 jumps found. (Code = 126) Position 1 = 13, Position 2 = 20
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 19
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/XrPWJ
function name:  (null)
number of ops:  22
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        SEND_VAL                                                 <array>
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !0, $6
    4     9        ASSIGN                                                   !1, 'key'
    5    10        ASSIGN                                                   !2, <array>
    6    11      > FE_RESET_RW                                      $10     !0, ->20
         12    > > FE_FETCH_RW                                      ~11     $10, !3, ->20
         13    >   ASSIGN                                                   !4, ~11
    8    14        ISSET_ISEMPTY_DIM_OBJ                         0          !3, !1
         15      > JMPZ                                                     ~13, ->19
   10    16    >   FETCH_DIM_R                                      ~15     !3, !1
         17        ASSIGN_DIM                                               !2
         18        OP_DATA                                                  ~15
    6    19    > > JMP                                                      ->12
         20    >   FE_FREE                                                  $10
   12    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.82 ms | 940 KiB | 18 Q