3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = "05"; $year = "2014"; $start_date = "01-".$month."-".$year; $start_time = strtotime($start_date); $end_time = strtotime("+1 month", $start_time); for($i=$start_time; $i<$end_time; $i+=86400) { $list[] = date('Y-m-d-D', $i); } print_r($list);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 17
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 17
Branch analysis from position: 26
Branch analysis from position: 17
filename:       /in/rUQMh
function name:  (null)
number of ops:  30
compiled vars:  !0 = $month, !1 = $year, !2 = $start_date, !3 = $start_time, !4 = $end_time, !5 = $i, !6 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '05'
    4     1        ASSIGN                                                   !1, '2014'
    6     2        CONCAT                                           ~9      '01-', !0
          3        CONCAT                                           ~10     ~9, '-'
          4        CONCAT                                           ~11     ~10, !1
          5        ASSIGN                                                   !2, ~11
    7     6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $13     
          9        ASSIGN                                                   !3, $13
    9    10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 '%2B1+month'
         12        SEND_VAR                                                 !3
         13        DO_ICALL                                         $15     
         14        ASSIGN                                                   !4, $15
   11    15        ASSIGN                                                   !5, !3
         16      > JMP                                                      ->24
   13    17    >   INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d-D'
         19        SEND_VAR                                                 !5
         20        DO_ICALL                                         $19     
         21        ASSIGN_DIM                                               !6
         22        OP_DATA                                                  $19
   11    23        ASSIGN_OP                                     1          !5, 86400
         24    >   IS_SMALLER                                               !5, !4
         25      > JMPNZ                                                    ~21, ->17
   16    26    >   INIT_FCALL                                               'print_r'
         27        SEND_VAR                                                 !6
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1396 KiB | 19 Q