3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = 0; $b = 0; $i=0; while($i<5) { $a += 10; $b += 5; $i++; } echo("At the end of the loop a=$a and b=$b");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 9, Position 2 = 4
Branch analysis from position: 9
Branch analysis from position: 4
filename:       /in/MjXK7
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 0
    3     1        ASSIGN                                                       !1, 0
    5     2        ASSIGN                                                       !2, 0
    6     3      > JMP                                                          ->7
    7     4    >   ASSIGN_OP                                         1          !0, 10
    8     5        ASSIGN_OP                                         1          !1, 5
   10     6        PRE_INC                                                      !2
    6     7    >   IS_SMALLER                                                   !2, 5
          8      > JMPNZ                                                        ~9, ->4
   13     9    >   ROPE_INIT                                         4  ~11     'At+the+end+of+the+loop+a%3D'
         10        ROPE_ADD                                          1  ~11     ~11, !0
         11        ROPE_ADD                                          2  ~11     ~11, '+and+b%3D'
         12        ROPE_END                                          3  ~10     ~11, !1
         13        ECHO                                                         ~10
         14      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.35 ms | 3268 KiB | 13 Q