3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xx = array(); for ($i = 0; $i++; $i < 100) { $xx[$i] = $i*$i; } $amount = 0; foreach ($xx as $i) { $amount += $i; } echo $amount;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/Ashpe
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xx, !1 = $i, !2 = $amount
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
    5     3    >   MUL                                              ~6      !1, !1
          4        ASSIGN_DIM                                               !0, !1
          5        OP_DATA                                                  ~6
    3     6        IS_SMALLER                                       ~7      !1, 100
          7        FREE                                                     ~7
          8    >   POST_INC                                         ~8      !1
          9      > JMPNZ                                                    ~8, ->3
    8    10    >   ASSIGN                                                   !2, 0
    9    11      > FE_RESET_R                                       $10     !0, ->15
         12    > > FE_FETCH_R                                               $10, !1, ->15
   10    13    >   ASSIGN_OP                                     1          !2, !1
    9    14      > JMP                                                      ->12
         15    >   FE_FREE                                                  $10
   13    16        ECHO                                                     !2
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.4 ms | 939 KiB | 14 Q