3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.23 ms | 1385 KiB | 13 Q