3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'label' => 'Evening', 'hour' => '15', 'minute' => '00', 'add_time' => 'enabled', 'zlzkrrwlwchehhtvdnmq_add_date' => '29 November 2022', 'zlzkrrwlwchehhtvdnmq_zoom_id' => null, 'zlzkrrwlwchehhtvdnmq_stock' => null, 'sfujorleiwijcczciess_add_date' => '30 November 2022' ]; var_export( array_filter( $array, fn($k) => str_contains($k, 'add_date') || str_contains($k, 'hour') || str_contains($k, 'minute'), ARRAY_FILTER_USE_KEY ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IStcN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   14     1        INIT_FCALL                                                   'var_export'
   15     2        INIT_FCALL                                                   'array_filter'
   16     3        SEND_VAR                                                     !0
   17     4        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          5        SEND_VAL                                                     ~2
   18     6        SEND_VAL                                                     2
   15     7        DO_ICALL                                             $3      
   18     8        SEND_VAR                                                     $3
   14     9        DO_ICALL                                                     
   20    10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 5
filename:       /in/IStcN
function name:  {closure:/in/IStcN:17}
number of ops:  10
compiled vars:  !0 = $k
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E >   RECV                                                 !0      
          1        FRAMELESS_ICALL_2                str_contains        ~1      !0, 'add_date'
          2      > JMPNZ_EX                                             ~1      ~1, ->5
          3    >   FRAMELESS_ICALL_2                str_contains        ~2      !0, 'hour'
          4        BOOL                                                 ~1      ~2
          5    > > JMPNZ_EX                                             ~1      ~1, ->8
          6    >   FRAMELESS_ICALL_2                str_contains        ~3      !0, 'minute'
          7        BOOL                                                 ~1      ~3
          8    > > RETURN                                                       ~1
          9*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.18 ms | 1886 KiB | 15 Q