3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num = 50; for($i = 1; $i <= 365; $i++) { static $total; $num = $num + 2; $total = $num + $total; echo $num . "<br>"; } echo 'total = ' . $total;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/jBYSc
function name:  (null)
number of ops:  16
compiled vars:  !0 = $num, !1 = $i, !2 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 50
    4     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->11
    5     3    >   BIND_STATIC                                              !2
    6     4        ADD                                              ~5      !0, 2
          5        ASSIGN                                                   !0, ~5
    7     6        ADD                                              ~7      !0, !2
          7        ASSIGN                                                   !2, ~7
    8     8        CONCAT                                           ~9      !0, '%3Cbr%3E'
          9        ECHO                                                     ~9
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER_OR_EQUAL                                      !1, 365
         12      > JMPNZ                                                    ~11, ->3
   12    13    >   CONCAT                                           ~12     'total+%3D+', !2
         14        ECHO                                                     ~12
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1394 KiB | 13 Q