3v4l.org

run code in 300+ PHP versions simultaneously
<?php $total = 0; for ($i = 1; $i <= 10; $i++) { for ($j = 10; $j >=1 ; $j++) { $total = $i + $j; echo "$i + $j = $total"; break; } } $total = $total / 2; print $total."<br/>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 5
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 3
Branch analysis from position: 20
Branch analysis from position: 3
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
filename:       /in/9UQEK
function name:  (null)
number of ops:  25
compiled vars:  !0 = $total, !1 = $i, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->18
    4     3    >   ASSIGN                                                   !2, 10
          4      > JMP                                                      ->15
    5     5    >   ADD                                              ~6      !1, !2
          6        ASSIGN                                                   !0, ~6
    6     7        ROPE_INIT                                     5  ~9      !1
          8        ROPE_ADD                                      1  ~9      ~9, '+%2B+'
          9        ROPE_ADD                                      2  ~9      ~9, !2
         10        ROPE_ADD                                      3  ~9      ~9, '+%3D+'
         11        ROPE_END                                      4  ~8      ~9, !0
         12        ECHO                                                     ~8
    7    13      > JMP                                                      ->17
    4    14*       PRE_INC                                                  !2
         15    >   IS_SMALLER_OR_EQUAL                                      1, !2
         16      > JMPNZ                                                    ~13, ->5
    3    17    >   PRE_INC                                                  !1
         18    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         19      > JMPNZ                                                    ~15, ->3
   10    20    >   DIV                                              ~16     !0, 2
         21        ASSIGN                                                   !0, ~16
   11    22        CONCAT                                           ~18     !0, '%3Cbr%2F%3E'
         23        ECHO                                                     ~18
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.51 ms | 1395 KiB | 13 Q