3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max = 100000; $a = $b = $c = 0; foreach (range($max) as $i) { $a = $a + $b + $i; $b = $a * 5678 * $i; $c = $i * $i; } //0,046 s
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/jj4eo
function name:  (null)
number of ops:  20
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        INIT_FCALL                                               'range'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $9      
          7      > FE_RESET_R                                       $10     $9, ->18
          8    > > FE_FETCH_R                                               $10, !4, ->18
    5     9    >   ADD                                              ~11     !1, !2
         10        ADD                                              ~12     ~11, !4
         11        ASSIGN                                                   !1, ~12
    6    12        MUL                                              ~14     !1, 5678
         13        MUL                                              ~15     !4, ~14
         14        ASSIGN                                                   !2, ~15
    7    15        MUL                                              ~17     !4, !4
         16        ASSIGN                                                   !3, ~17
    4    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $10
    9    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.39 ms | 1395 KiB | 15 Q