3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array("09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30"); $start = "09:30"; $end = "10:30"; $cars = array_filter($cars, function ($v) use ($start, $end) { return strtotime($v) < strtotime($start) || strtotime($v) > strtotime($end); }); print_r($cars);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qvZJT
function name:  (null)
number of ops:  15
compiled vars:  !0 = $cars, !1 = $start, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, '09%3A30'
    4     2        ASSIGN                                                   !2, '10%3A30'
    5     3        INIT_FCALL                                               'array_filter'
          4        SEND_VAR                                                 !0
          5        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
          6        BIND_LEXICAL                                             ~6, !1
          7        BIND_LEXICAL                                             ~6, !2
    6     8        SEND_VAL                                                 ~6
    5     9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !0, $7
    7    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/qvZJT
function name:  {closure}
number of ops:  21
compiled vars:  !0 = $v, !1 = $start, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
    6     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $4      
          9        IS_SMALLER                                       ~5      $3, $4
         10      > JMPNZ_EX                                         ~5      ~5, ->19
         11    >   INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $6      
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $7      
         17        IS_SMALLER                                       ~8      $7, $6
         18        BOOL                                             ~5      ~8
         19    > > RETURN                                                   ~5
         20*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.28 ms | 1003 KiB | 16 Q