3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from = '2014-06-26 07:53:26'; $to = '2014-06-27 07:52:46'; $diff_stamp = strtotime($to) - strtotime($from); $range = range(strtotime($from), strtotime($to), $diff_stamp/4); $range = array_map(function($a){return date('Y-m-d H:i:s', $a);}, $range); print_r($range);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8lKW
function name:  (null)
number of ops:  33
compiled vars:  !0 = $from, !1 = $to, !2 = $diff_stamp, !3 = $range
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '2014-06-26+07%3A53%3A26'
    4     1        ASSIGN                                                   !1, '2014-06-27+07%3A52%3A46'
    6     2        INIT_FCALL                                               'strtotime'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $6      
          5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        SUB                                              ~8      $6, $7
          9        ASSIGN                                                   !2, ~8
    7    10        INIT_FCALL                                               'range'
         11        INIT_FCALL                                               'strtotime'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $10     
         14        SEND_VAR                                                 $10
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        SEND_VAR                                                 $11
         19        DIV                                              ~12     !2, 4
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                         $13     
         22        ASSIGN                                                   !3, $13
    9    23        INIT_FCALL                                               'array_map'
         24        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fb8lKW%3A9%240'
         25        SEND_VAL                                                 ~15
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $16     
         28        ASSIGN                                                   !3, $16
   11    29        INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fb8lKW%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b8lKW
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fb8lKW%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.06 ms | 1400 KiB | 23 Q