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".($b==1?" bottle of beer.Go to the store and buy some more, 99$a$c":"$a.Take one down and pass it around, ".($b-1)."$a$c").".";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
Branch analysis from position: 4
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
Branch analysis from position: 4
filename:       /in/ldrFd
function name:  (null)
number of ops:  30
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                                                      ->28
          4    >   ROPE_INIT                                     5  ~7      !0
          5        ROPE_ADD                                      1  ~7      ~7, !1
          6        ROPE_ADD                                      2  ~7      ~7, !2
          7        ROPE_ADD                                      3  ~7      ~7, '%2C+'
          8        ROPE_END                                      4  ~6      ~7, !0
          9        IS_EQUAL                                                 !0, 1
         10      > JMPZ                                                     ~10, ->16
         11    >   ROPE_INIT                                     3  ~12     '+bottle+of+beer.Go+to+the+store+and+buy+some+more%2C+99'
         12        ROPE_ADD                                      1  ~12     ~12, !1
         13        ROPE_END                                      2  ~11     ~12, !2
         14        QM_ASSIGN                                        ~14     ~11
         15      > JMP                                                      ->24
         16    >   NOP                                                      
         17        FAST_CONCAT                                      ~15     !1, '.Take+one+down+and+pass+it+around%2C+'
         18        SUB                                              ~16     !0, 1
         19        CONCAT                                           ~17     ~15, ~16
         20        NOP                                                      
         21        FAST_CONCAT                                      ~18     !1, !2
         22        CONCAT                                           ~19     ~17, ~18
         23        QM_ASSIGN                                        ~14     ~19
         24    >   CONCAT                                           ~20     ~6, ~14
         25        CONCAT                                           ~21     ~20, '.'
         26        ECHO                                                     ~21
         27        PRE_DEC                                                  !0
         28    > > JMPNZ                                                    !0, ->4
         29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.59 ms | 1395 KiB | 13 Q