3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 99; while ($i > 0) { if ($i == 1) { print "$i bottle of beer on the wall "; $i--; } else { print "$i bottles of beer on the wall "; $i--; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/nFQAZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 99
    3     1      > JMP                                                      ->13
    4     2    >   IS_EQUAL                                                 !0, 1
          3      > JMPZ                                                     ~2, ->9
    5     4    >   NOP                                                      
          5        FAST_CONCAT                                      ~3      !0, '+bottle+of+beer+on+the+wall+'
          6        ECHO                                                     ~3
    6     7        PRE_DEC                                                  !0
          8      > JMP                                                      ->13
    9     9    >   NOP                                                      
         10        FAST_CONCAT                                      ~5      !0, '+bottles+of+beer+on+the+wall+'
         11        ECHO                                                     ~5
   10    12        PRE_DEC                                                  !0
    3    13    >   IS_SMALLER                                               0, !0
         14      > JMPNZ                                                    ~7, ->2
   12    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.24 ms | 1393 KiB | 13 Q