3v4l.org

run code in 300+ PHP versions simultaneously
<?php $vehicle = ["vehicle" => [ 0 => "Acura", 1 => "Mazda" ]]; $d = ["doors" => [ 0 => "4 Door", 1 => "2 Door" ]]; Foreach($vehicle["vehicle"] as $key => $v){ $temp["vehicle" . ($key+1)]["vehicle"] = $v; $temp["vehicle" . ($key+1)]["doors"] = $d["doors"][$key]; } Extract($temp); Var_dump($vehicle1, $vehicle2);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 19
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/ltoEs
function name:  (null)
number of ops:  28
compiled vars:  !0 = $vehicle, !1 = $d, !2 = $v, !3 = $key, !4 = $temp, !5 = $vehicle1, !6 = $vehicle2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        FETCH_DIM_R                                      ~9      !0, 'vehicle'
          3      > FE_RESET_R                                       $10     ~9, ->19
          4    > > FE_FETCH_R                                       ~11     $10, !2, ->19
          5    >   ASSIGN                                                   !3, ~11
   16     6        ADD                                              ~13     !3, 1
          7        CONCAT                                           ~14     'vehicle', ~13
          8        FETCH_DIM_W                                      $15     !4, ~14
          9        ASSIGN_DIM                                               $15, 'vehicle'
         10        OP_DATA                                                  !2
   17    11        ADD                                              ~17     !3, 1
         12        CONCAT                                           ~18     'vehicle', ~17
         13        FETCH_DIM_R                                      ~21     !1, 'doors'
         14        FETCH_DIM_R                                      ~22     ~21, !3
         15        FETCH_DIM_W                                      $19     !4, ~18
         16        ASSIGN_DIM                                               $19, 'doors'
         17        OP_DATA                                                  ~22
   15    18      > JMP                                                      ->4
         19    >   FE_FREE                                                  $10
   19    20        INIT_FCALL                                               'extract'
         21        SEND_REF                                                 !4
         22        DO_ICALL                                                 
   20    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !5
         25        SEND_VAR                                                 !6
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.47 ms | 1012 KiB | 15 Q