3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array("This","Is","A","Little","Test"); $k = count($array); for ($i = 0; $i < $k; $i++) { echo $array[$i]; } for ($i = 0; $i < count($array); $i++) { echo $array[$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 11
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 11
Branch analysis from position: 16
Branch analysis from position: 11
filename:       /in/fu7iM
function name:  (null)
number of ops:  25
compiled vars:  !0 = $array, !1 = $k, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_DYNAMIC_CALL                                        !0
          1        SEND_VAL_EX                                              'This'
          2        SEND_VAL_EX                                              'Is'
          3        SEND_VAL_EX                                              'A'
          4        SEND_VAL_EX                                              'Little'
          5        SEND_VAL_EX                                              'Test'
          6        DO_FCALL                                      0          
    3     7        COUNT                                            ~4      !0
          8        ASSIGN                                                   !1, ~4
    4     9        ASSIGN                                                   !2, 0
         10      > JMP                                                      ->14
    5    11    >   FETCH_DIM_R                                      ~7      !0, !2
         12        ECHO                                                     ~7
    4    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, !1
         15      > JMPNZ                                                    ~9, ->11
    8    16    >   ASSIGN                                                   !2, 0
         17      > JMP                                                      ->21
    9    18    >   FETCH_DIM_R                                      ~11     !0, !2
         19        ECHO                                                     ~11
    8    20        PRE_INC                                                  !2
         21    >   COUNT                                            ~13     !0
         22        IS_SMALLER                                               !2, ~13
         23      > JMPNZ                                                    ~14, ->18
   10    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.99 ms | 1395 KiB | 13 Q