3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.46 ms | 1394 KiB | 13 Q