3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayItems = array( array( "item" => "firstname", "value"=>"John" ), array( "item" => "lastname", "value"=>"Doe" ), array( "item" => "adress", "value"=>"3 garden street" ), array( "item" => "Tel", "value"=>"123456" ) ); $arrayValue = array( array( "isAlias" => "false" ), array( "isAlias" => "false" ), array( "offical" => "true" ), array( "active" => "true" ) ); $merge = []; for ($i = 0; $i < count($arrayItems); $i++) { array_push($merge, array_merge($arrayItems[$i], $arrayValue[$i])); } var_dump($merge); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
filename:       /in/Dk5Nu
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arrayItems, !1 = $arrayValue, !2 = $merge, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   22     1        ASSIGN                                                   !1, <array>
   37     2        ASSIGN                                                   !2, <array>
   39     3        ASSIGN                                                   !3, 0
          4      > JMP                                                      ->16
   40     5    >   INIT_FCALL                                               'array_push'
          6        SEND_REF                                                 !2
          7        INIT_FCALL                                               'array_merge'
          8        FETCH_DIM_R                                      ~8      !0, !3
          9        SEND_VAL                                                 ~8
         10        FETCH_DIM_R                                      ~9      !1, !3
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                                 
   39    15        PRE_INC                                                  !3
         16    >   COUNT                                            ~13     !0
         17        IS_SMALLER                                               !3, ~13
         18      > JMPNZ                                                    ~14, ->5
   43    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   45    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.35 ms | 1004 KiB | 16 Q