3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateParts = ['year', 'month']; $timeParts = ['hour']; $parts = ['date' => $dateParts, 'time' => $timeParts]; var_dump(array_reduce($parts, array_merge, []));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tobWE
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dateParts, !1 = $timeParts, !2 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_ARRAY                                       ~5      !0, 'date'
          3        ADD_ARRAY_ELEMENT                                ~5      !1, 'time'
          4        ASSIGN                                                   !2, ~5
    9     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_reduce'
          7        SEND_VAR                                                 !2
          8        FETCH_CONSTANT                                   ~7      'array_merge'
          9        SEND_VAL                                                 ~7
         10        SEND_VAL                                                 <array>
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.21 ms | 1394 KiB | 17 Q