3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=0; $b=0; for($i=10; $i<10; $i++) { $a +=10; $b +=5; } echo "at the end of loop a=$a and b=$b\n";
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/ZYgbA
function name:  (null)
number of ops:  16
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
    4     2        ASSIGN                                                   !2, 10
          3      > JMP                                                      ->7
    6     4    >   ASSIGN_OP                                     1          !0, 10
    7     5        ASSIGN_OP                                     1          !1, 5
    4     6        PRE_INC                                                  !2
          7    >   IS_SMALLER                                               !2, 10
          8      > JMPNZ                                                    ~9, ->4
    9     9    >   ROPE_INIT                                     5  ~11     'at+the+end+of+loop+a%3D'
         10        ROPE_ADD                                      1  ~11     ~11, !0
         11        ROPE_ADD                                      2  ~11     ~11, '+and+b%3D'
         12        ROPE_ADD                                      3  ~11     ~11, !1
         13        ROPE_END                                      4  ~10     ~11, '%0A'
         14        ECHO                                                     ~10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1394 KiB | 13 Q