3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrStart = [ 0 => [ "start" => "04/26/2015 8:00 AM", ], 1 => [ "start" => "04/26/2015 9:00 AM", ], ]; $arrEnd = [ 0 => [ "end" => "04/26/2015 10:00 AM", ], 1 => [ "end" => "04/26/2015 11:00 AM", ], ]; $keys = [ 0 => "1", 1 => "3", ]; $result = []; foreach ($keys as $i => $key) { $result[$key] = [ 'start' => $arrStart[$i][0], 'end' => $arrEnd[$i][0], ]; } var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/GoWiV
function name:  (null)
number of ops:  21
compiled vars:  !0 = $arrStart, !1 = $arrEnd, !2 = $keys, !3 = $result, !4 = $key, !5 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   21     2        ASSIGN                                                   !2, <array>
   26     3        ASSIGN                                                   !3, <array>
   28     4      > FE_RESET_R                                       $10     !2, ->16
          5    > > FE_FETCH_R                                       ~11     $10, !4, ->16
          6    >   ASSIGN                                                   !5, ~11
   30     7        FETCH_DIM_R                                      ~14     !0, !5
          8        FETCH_DIM_R                                      ~15     ~14, 0
          9        INIT_ARRAY                                       ~16     ~15, 'start'
   31    10        FETCH_DIM_R                                      ~17     !1, !5
         11        FETCH_DIM_R                                      ~18     ~17, 0
         12        ADD_ARRAY_ELEMENT                                ~16     ~18, 'end'
   29    13        ASSIGN_DIM                                               !3, !4
   31    14        OP_DATA                                                  ~16
   28    15      > JMP                                                      ->5
         16    >   FE_FREE                                                  $10
   35    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.92 ms | 1395 KiB | 15 Q