3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.51 ms | 1393 KiB | 13 Q