3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 100000; $a = $b = $c = 0; for ($i = 0; $i < $max; $i++) { $a = $a + $b + $i; $b = $a * 5678 * $i; $c = $i * $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/nAYaq
function name:  (null)
number of ops:  18
compiled vars:  !0 = $max, !1 = $a, !2 = $b, !3 = $c, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100000
    3     1        ASSIGN                                           ~6      !3, 0
          2        ASSIGN                                           ~7      !2, ~6
          3        ASSIGN                                                   !1, ~7
    4     4        ASSIGN                                                   !4, 0
          5      > JMP                                                      ->15
    5     6    >   ADD                                              ~10     !1, !2
          7        ADD                                              ~11     ~10, !4
          8        ASSIGN                                                   !1, ~11
    6     9        MUL                                              ~13     !1, 5678
         10        MUL                                              ~14     !4, ~13
         11        ASSIGN                                                   !2, ~14
    7    12        MUL                                              ~16     !4, !4
         13        ASSIGN                                                   !3, ~16
    4    14        PRE_INC                                                  !4
         15    >   IS_SMALLER                                               !4, !0
         16      > JMPNZ                                                    ~19, ->6
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.91 ms | 1394 KiB | 13 Q