3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dates = [ '2022-10-23' => '2022-10-23', '2022-10-24' => '2022-10-24', '2022-10-25' => '2022-10-25', '2022-10-26' => '2022-10-26', '2022-10-27' => '2022-10-27', '2022-10-28' => '2022-10-28', '2022-10-29' => '2022-10-29' ]; $rows = [ '2022-10-24' => [ 'id' => 11, 'user_id' => 1, 'notitie' => 'Mag al helemaal niet', 'datum' => '2022-10-24', 'user_role' => 'client' ], '2022-10-26' => [ 'id' => 15, 'user_id' => 1, 'notitie' => 26, 'datum' => '2022-10-26', 'user_role' => 'client' ], ]; var_export( array_map( fn($v) => $rows[$v] ?? [], $dates ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16d2H
function name:  (null)
number of ops:  12
compiled vars:  !0 = $dates, !1 = $rows
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   13     1        ASSIGN                                                       !1, <array>
   30     2        INIT_FCALL                                                   'var_export'
   31     3        INIT_FCALL                                                   'array_map'
   32     4        DECLARE_LAMBDA_FUNCTION                              ~4      [0]
          5        BIND_LEXICAL                                                 ~4, !1
          6        SEND_VAL                                                     ~4
   33     7        SEND_VAR                                                     !0
   31     8        DO_ICALL                                             $5      
   33     9        SEND_VAR                                                     $5
   30    10        DO_ICALL                                                     
   35    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/16d2H
function name:  {closure:/in/16d2H:32}
number of ops:  7
compiled vars:  !0 = $v, !1 = $rows
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   32     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        FETCH_DIM_IS                                         ~2      !1, !0
          3        COALESCE                                             ~3      ~2
          4        QM_ASSIGN                                            ~3      <array>
          5      > RETURN                                                       ~3
          6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
174.99 ms | 2019 KiB | 15 Q