3v4l.org

run code in 300+ PHP versions simultaneously
<!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
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 9
Branch analysis from position: 14
Branch analysis from position: 9
filename:       /in/l6DAM
function name:  (null)
number of ops:  16
compiled vars:  !0 = $color, !1 = $al, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     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        COUNT                                            ~5      !0
          6        ASSIGN                                                   !1, ~5
    9     7        ASSIGN                                                   !2, 0
          8      > JMP                                                      ->12
   11     9    >   ECHO                                                     !0
   12    10        ECHO                                                     '%3Cbr%3E'
    9    11        PRE_INC                                                  !2
         12    >   IS_SMALLER                                               !2, !1
         13      > JMPNZ                                                    ~9, ->9
   15    14    >   ECHO                                                     '%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   16    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.82 ms | 1395 KiB | 15 Q