3v4l.org

run code in 300+ PHP versions simultaneously
<?for($b=99,$a=' bottles of beer',$c=' on the wall';$b;$b--)echo"$b$a$c $b$a Took 1 down passed it around ".($b-1)."$a$c";
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 = 19, Position 2 = 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 4
Branch analysis from position: 19
Branch analysis from position: 4
filename:       /in/0sQel
function name:  (null)
number of ops:  20
compiled vars:  !0 = $b, !1 = $a, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 99
          1        ASSIGN                                                   !1, '+bottles+of+beer'
          2        ASSIGN                                                   !2, '+on+the+wall'
          3      > JMP                                                      ->18
          4    >   ROPE_INIT                                     7  ~7      !0
          5        ROPE_ADD                                      1  ~7      ~7, !1
          6        ROPE_ADD                                      2  ~7      ~7, !2
          7        ROPE_ADD                                      3  ~7      ~7, '+'
          8        ROPE_ADD                                      4  ~7      ~7, !0
          9        ROPE_ADD                                      5  ~7      ~7, !1
         10        ROPE_END                                      6  ~6      ~7, '+Took+1+down+passed+it+around+'
         11        SUB                                              ~11     !0, 1
         12        CONCAT                                           ~12     ~6, ~11
         13        NOP                                                      
         14        FAST_CONCAT                                      ~13     !1, !2
         15        CONCAT                                           ~14     ~12, ~13
         16        ECHO                                                     ~14
         17        PRE_DEC                                                  !0
         18    > > JMPNZ                                                    !0, ->4
         19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.8 ms | 1394 KiB | 13 Q