3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.76 ms | 1395 KiB | 15 Q