3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array("id","car1","car2","car3"); $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $model[$x+1] . "=" . $cars[$x]; echo "\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/b7d8c
function name:  (null)
number of ops:  17
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      !1
          3        ASSIGN                                                   !2, ~6
    6     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->14
    7     6    >   ADD                                              ~9      !3, 1
          7        FETCH_DIM_R                                      ~10     !0, ~9
          8        CONCAT                                           ~11     ~10, '%3D'
          9        FETCH_DIM_R                                      ~12     !1, !3
         10        CONCAT                                           ~13     ~11, ~12
         11        ECHO                                                     ~13
    8    12        ECHO                                                     '%0A'
    6    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !2
         15      > JMPNZ                                                    ~15, ->6
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.27 ms | 1394 KiB | 13 Q