3v4l.org

run code in 300+ PHP versions simultaneously
<?php $occupied_ids = [ [8457, 6584], [9874, 4586], ]; var_export( array_map( fn($v) => [ 'occupied_id' => $v, 'feed' => $_GET['feed'] ?? 2, 'status' => 1, 'status_date' => date('Y-m-d'), ], array_merge(...$occupied_ids) ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ic4Sd
function name:  (null)
number of ops:  14
compiled vars:  !0 = $occupied_ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'var_export'
    9     2        INIT_FCALL                                               'array_map'
   10     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   15     4        SEND_VAL                                                 ~2
   16     5        INIT_FCALL                                               'array_merge'
          6        SEND_UNPACK                                              !0
          7        CHECK_UNDEF_ARGS                                         
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
    9    10        DO_ICALL                                         $4      
   16    11        SEND_VAR                                                 $4
    8    12        DO_ICALL                                                 
   18    13      > 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/ic4Sd
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   11     1        INIT_ARRAY                                       ~1      !0, 'occupied_id'
   12     2        FETCH_IS                                         ~2      '_GET'
          3        FETCH_DIM_IS                                     ~3      ~2, 'feed'
          4        COALESCE                                         ~4      ~3
          5        QM_ASSIGN                                        ~4      2
          6        ADD_ARRAY_ELEMENT                                ~1      ~4, 'feed'
   13     7        ADD_ARRAY_ELEMENT                                ~1      1, 'status'
   14     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y-m-d'
         10        DO_ICALL                                         $5      
         11        ADD_ARRAY_ELEMENT                                ~1      $5, 'status_date'
         12      > RETURN                                                   ~1
   15    13*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.58 ms | 1004 KiB | 17 Q