3v4l.org

run code in 300+ PHP versions simultaneously
<?php $getSites = [ ['site_id' => 1], ['site_id' => 2], ]; $l = count($getSites); for ($x=0; $x < $l; $x++) { echo $getSites[$x]['site_id'] . \PHP_EOL; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 5
Branch analysis from position: 12
Branch analysis from position: 5
filename:       /in/0qbWf
function name:  (null)
number of ops:  13
compiled vars:  !0 = $getSites, !1 = $l, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        COUNT                                            ~4      !0
          2        ASSIGN                                                   !1, ~4
    9     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->10
   10     5    >   FETCH_DIM_R                                      ~7      !0, !2
          6        FETCH_DIM_R                                      ~8      ~7, 'site_id'
          7        CONCAT                                           ~9      ~8, '%0A'
          8        ECHO                                                     ~9
    9     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, !1
         11      > JMPNZ                                                    ~11, ->5
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.43 ms | 994 KiB | 13 Q