3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array( '09:26-DOWN', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-DOWN', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP', '09:26-UP' ); $arr2 = array( '09:31-DOWN', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP', '09:31-UP' ); $result = array_map($arr1, function($a, $k)use($arr2){return $a[6] . $arr2[$k][6];}); print_r($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EtKdB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   24     1        ASSIGN                                                   !1, <array>
   45     2        INIT_FCALL                                               'array_map'
          3        SEND_VAR                                                 !0
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FEtKdB%3A45%240'
          5        BIND_LEXICAL                                             ~5, !1
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   46     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FEtKdB%3A45%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EtKdB
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $a, !1 = $k, !2 = $arr2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   45     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        BIND_STATIC                                              !2
          3        FETCH_DIM_R                                      ~3      !0, 6
          4        FETCH_DIM_R                                      ~4      !2, !1
          5        FETCH_DIM_R                                      ~5      ~4, 6
          6        CONCAT                                           ~6      ~3, ~5
          7      > RETURN                                                   ~6
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FEtKdB%3A45%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.36 ms | 1395 KiB | 17 Q