3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array("id","car1","car2","car3"); $cars=array("Volvo","BMW","Toyota"); $arrlength=count($model); for($x=1;$x<$arrlength;$x++) { echo $cars[$x]; echo "\n"; } ?>
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/HQNlP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $model, !1 = $cars, !2 = $arrlength, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        COUNT                                            ~6      !0
          3        ASSIGN                                                   !2, ~6
    6     4        ASSIGN                                                   !3, 1
          5      > JMP                                                      ->10
    7     6    >   FETCH_DIM_R                                      ~9      !1, !3
          7        ECHO                                                     ~9
    8     8        ECHO                                                     '%0A'
    6     9        PRE_INC                                                  !3
         10    >   IS_SMALLER                                               !3, !2
         11      > JMPNZ                                                    ~11, ->6
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.46 ms | 1393 KiB | 13 Q