3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.42 ms | 1393 KiB | 13 Q