3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $cars[$x]; echo "<br>"; } ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 6
Branch analysis from position: 12
Branch analysis from position: 6
filename:       /in/p2ENe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $cars, !1 = $arrlength, !2 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A%3Cbody%3E%0A%0A'
    6     1        ASSIGN                                                   !0, <array>
    7     2        COUNT                                            ~4      !0
          3        ASSIGN                                                   !1, ~4
    9     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->10
   11     6    >   FETCH_DIM_R                                      ~7      !0, !2
          7        ECHO                                                     ~7
   12     8        ECHO                                                     '%3Cbr%3E'
    9     9        PRE_INC                                                  !2
         10    >   IS_SMALLER                                               !2, !1
         11      > JMPNZ                                                    ~9, ->6
   15    12    >   ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   17    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.42 ms | 1393 KiB | 13 Q