3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testArray; for ($i = 0; $i <= 100; $i++) { $testArray[] = "This is: ". $i; } foreach ($testArray as $number) { echo $number; echo $testArray[100]; }
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 = 8, Position 2 = 2
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 2
Branch analysis from position: 8
Branch analysis from position: 2
filename:       /in/6N93E
function name:  (null)
number of ops:  16
compiled vars:  !0 = $testArray, !1 = $i, !2 = $number
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !1, 0
          1      > JMP                                                      ->6
    4     2    >   CONCAT                                           ~5      'This+is%3A+', !1
          3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  ~5
    3     5        PRE_INC                                                  !1
          6    >   IS_SMALLER_OR_EQUAL                                      !1, 100
          7      > JMPNZ                                                    ~7, ->2
    7     8    > > FE_RESET_R                                       $8      !0, ->14
          9    > > FE_FETCH_R                                               $8, !2, ->14
    8    10    >   ECHO                                                     !2
    9    11        FETCH_DIM_R                                      ~9      !0, 100
         12        ECHO                                                     ~9
    7    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $8
   10    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.78 ms | 1393 KiB | 13 Q