3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE> <html> <body> <?php $color = array('white', 'green', 'red'); sort($color); $al=count($color); for($x=0;$x<$al;$x++) { echo $color; echo "<br>"; } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 15
Branch analysis from position: 15
Jump found. Position 1 = 17, Position 2 = 11
Branch analysis from position: 17
Jump found. Position 1 = -2
Branch analysis from position: 11
Jump found. Position 1 = 17, Position 2 = 11
Branch analysis from position: 17
Branch analysis from position: 11
filename:       /in/l6DAM
function name:  (null)
number of ops:  19
compiled vars:  !0 = $color, !1 = $al, !2 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   ECHO                                                     '%3C%21DOCTYPE%3E%0A%3Chtml%3E%0A++++%3Cbody%3E%0A%0A'
   6     1        ASSIGN                                                   !0, <array>
   7     2        INIT_FCALL                                               'sort'
         3        SEND_REF                                                 !0
         4        DO_ICALL                                                 
   8     5        INIT_FCALL                                               'count'
         6        SEND_VAR                                                 !0
         7        DO_ICALL                                         $5      
         8        ASSIGN                                                   !1, $5
   9     9        ASSIGN                                                   !2, 0
        10      > JMP                                                      ->15
  11    11    >   ECHO                                                     !0
  12    12        ECHO                                                     '%3Cbr%3E'
   9    13        POST_INC                                         ~8      !2
        14        FREE                                                     ~8
        15    >   IS_SMALLER                                       ~9      !2, !1
        16      > JMPNZ                                                    ~9, ->11
  16    17    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
        18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0