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.\n".($b==1?"Go to the store and buy some more, 99$a$c":"Take one down and pass it around, ".($b-1)."$a$c").".\n\n";
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 = 13, Position 2 = 18
Branch analysis from position: 13
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: 18
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 4
Branch analysis from position: 29
Branch analysis from position: 4
filename:       /in/Hdng2
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                                     7  ~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_ADD                                      4  ~7      ~7, !0
          9        ROPE_ADD                                      5  ~7      ~7, !1
         10        ROPE_END                                      6  ~6      ~7, '.%0A'
         11        IS_EQUAL                                                 !0, 1
         12      > JMPZ                                                     ~11, ->18
         13    >   ROPE_INIT                                     3  ~13     'Go+to+the+store+and+buy+some+more%2C+99'
         14        ROPE_ADD                                      1  ~13     ~13, !1
         15        ROPE_END                                      2  ~12     ~13, !2
         16        QM_ASSIGN                                        ~15     ~12
         17      > JMP                                                      ->24
         18    >   SUB                                              ~16     !0, 1
         19        CONCAT                                           ~17     'Take+one+down+and+pass+it+around%2C+', ~16
         20        NOP                                                      
         21        FAST_CONCAT                                      ~18     !1, !2
         22        CONCAT                                           ~19     ~17, ~18
         23        QM_ASSIGN                                        ~15     ~19
         24    >   CONCAT                                           ~20     ~6, ~15
         25        CONCAT                                           ~21     ~20, '.%0A%0A'
         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:
163.85 ms | 1395 KiB | 13 Q