3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [0 => array('name' => 'coco', 'created_at' => array('sec' => 1444339210, 'usec' => 23000))]; //var_dump($arr); // $time = strtotime('01/07/2015'); $filter = array_filter($arr, function($arr){ return $arr['created_at']['sec'] > 1444339200 && $arr['created_at']['sec'] < 1444339220; }); var_dump($filter); // echo $time;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E76qB
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr, !1 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FE76qB%3A7%240'
    9     4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
    7     6        ASSIGN                                                   !1, $4
   11     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   12    10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FE76qB%3A7%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/E76qB
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        FETCH_DIM_R                                      ~1      !0, 'created_at'
          2        FETCH_DIM_R                                      ~2      ~1, 'sec'
          3        IS_SMALLER                                       ~3      1444339200, ~2
          4      > JMPZ_EX                                          ~3      ~3, ->9
          5    >   FETCH_DIM_R                                      ~4      !0, 'created_at'
          6        FETCH_DIM_R                                      ~5      ~4, 'sec'
          7        IS_SMALLER                                       ~6      ~5, 1444339220
          8        BOOL                                             ~3      ~6
          9    > > RETURN                                                   ~3
    9    10*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FE76qB%3A7%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.31 ms | 1403 KiB | 18 Q