3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start = '10-01-2019'; $end = '21-02-2019'; // This is to progress the range through each day. // 24 days, 60 minutes, 60 seconds $step = 24 * 60 * 60; $days = array_map(function ($day) { return date('d-M-Y', $day); }, range(strtotime($end), strtotime($start), -$step)); array_walk($days, function ($day) { echo $day."\n"; });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S3AK5
function name:  (null)
number of ops:  27
compiled vars:  !0 = $start, !1 = $end, !2 = $step, !3 = $days
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '10-01-2019'
    4     1        ASSIGN                                                       !1, '21-02-2019'
    8     2        ASSIGN                                                       !2, 86400
   10     3        INIT_FCALL                                                   'array_map'
          4        DECLARE_LAMBDA_FUNCTION                              ~7      [0]
   12     5        SEND_VAL                                                     ~7
          6        INIT_FCALL                                                   'range'
          7        INIT_FCALL                                                   'strtotime'
          8        SEND_VAR                                                     !1
          9        DO_ICALL                                             $8      
         10        SEND_VAR                                                     $8
         11        INIT_FCALL                                                   'strtotime'
         12        SEND_VAR                                                     !0
         13        DO_ICALL                                             $9      
         14        SEND_VAR                                                     $9
         15        MUL                                                  ~10     !2, -1
         16        SEND_VAL                                                     ~10
         17        DO_ICALL                                             $11     
         18        SEND_VAR                                                     $11
   10    19        DO_ICALL                                             $12     
         20        ASSIGN                                                       !3, $12
   14    21        INIT_FCALL                                                   'array_walk'
         22        SEND_REF                                                     !3
         23        DECLARE_LAMBDA_FUNCTION                              ~14     [1]
   16    24        SEND_VAL                                                     ~14
   14    25        DO_ICALL                                                     
   16    26      > 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/S3AK5
function name:  {closure:/in/S3AK5:10}
number of ops:  7
compiled vars:  !0 = $day
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
   11     1        INIT_FCALL                                                   'date'
          2        SEND_VAL                                                     'd-M-Y'
          3        SEND_VAR                                                     !0
          4        DO_ICALL                                             $1      
          5      > RETURN                                                       $1
   12     6*     > RETURN                                                       null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S3AK5
function name:  {closure:/in/S3AK5:14}
number of ops:  4
compiled vars:  !0 = $day
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
   15     1        CONCAT                                               ~1      !0, '%0A'
          2        ECHO                                                         ~1
   16     3      > RETURN                                                       null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.64 ms | 2129 KiB | 18 Q