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\n"; break; } } $total = $total / 2; print $total."<br/>";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
filename:       /in/XdHXV
function name:  (null)
number of ops:  26
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                                                      ->19
    4     3    >   ASSIGN                                                   !2, 10
          4      > JMP                                                      ->16
    5     5    >   ADD                                              ~6      !1, !2
          6        ASSIGN                                                   !0, ~6
    6     7        ROPE_INIT                                     6  ~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_ADD                                      4  ~9      ~9, !0
         12        ROPE_END                                      5  ~8      ~9, '%0A'
         13        ECHO                                                     ~8
    7    14      > JMP                                                      ->18
    4    15*       PRE_INC                                                  !2
         16    >   IS_SMALLER_OR_EQUAL                                      1, !2
         17      > JMPNZ                                                    ~13, ->5
    3    18    >   PRE_INC                                                  !1
         19    >   IS_SMALLER_OR_EQUAL                                      !1, 10
         20      > JMPNZ                                                    ~15, ->3
   10    21    >   DIV                                              ~16     !0, 2
         22        ASSIGN                                                   !0, ~16
   11    23        CONCAT                                           ~18     !0, '%3Cbr%2F%3E'
         24        ECHO                                                     ~18
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.34 ms | 1395 KiB | 13 Q