3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tbl[] = 1; $tbl[] = 2; $tbl[] = 3; $tbl[] = 4; $tbl[] = 5; for( $x = 0, $cnt = count($tbl); $x < $cnt; $x++ ){ echo $tbl[$x]; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
Branch analysis from position: 14
filename:       /in/bARh7
function name:  (null)
number of ops:  20
compiled vars:  !0 = $tbl, !1 = $x, !2 = $cnt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN_DIM                                               !0
          1        OP_DATA                                                  1
    4     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  2
    5     4        ASSIGN_DIM                                               !0
          5        OP_DATA                                                  3
    6     6        ASSIGN_DIM                                               !0
          7        OP_DATA                                                  4
    7     8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  5
    9    10        ASSIGN                                                   !1, 0
         11        COUNT                                            ~9      !0
         12        ASSIGN                                                   !2, ~9
         13      > JMP                                                      ->17
   11    14    >   FETCH_DIM_R                                      ~11     !0, !1
         15        ECHO                                                     ~11
    9    16        PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, !2
         18      > JMPNZ                                                    ~13, ->14
   15    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.87 ms | 1385 KiB | 13 Q