3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startUnixTime = strtotime("2013-03-29"); $endUnixTime = strtotime("2013-05-04"); for($unixTime = $startUnixTime; $unixTime <= $endUnixTime; $unixTime += 60 * 60 * 24){ $year = (int) date("Y", $unixTime); $month = (int) date("m", $unixTime); $day = (int) date("d", $unixTime); $item['days'][$year][$month][$day] = true;//$unixTime >= $resDateFilterFromUnix && $unixTime <= $resDateFilterToUnix; } var_dump($item);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 10
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 36, Position 2 = 10
Branch analysis from position: 36
Branch analysis from position: 10
filename:       /in/6CktR
function name:  (null)
number of ops:  40
compiled vars:  !0 = $startUnixTime, !1 = $endUnixTime, !2 = $unixTime, !3 = $year, !4 = $month, !5 = $day, !6 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2013-03-29'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013-05-04'
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    6     8        ASSIGN                                                   !2, !0
          9      > JMP                                                      ->34
    7    10    >   INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $12     
         14        CAST                                          4  ~13     $12
         15        ASSIGN                                                   !3, ~13
    8    16        INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'm'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $15     
         20        CAST                                          4  ~16     $15
         21        ASSIGN                                                   !4, ~16
    9    22        INIT_FCALL                                               'date'
         23        SEND_VAL                                                 'd'
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $18     
         26        CAST                                          4  ~19     $18
         27        ASSIGN                                                   !5, ~19
   10    28        FETCH_DIM_W                                      $21     !6, 'days'
         29        FETCH_DIM_W                                      $22     $21, !3
         30        FETCH_DIM_W                                      $23     $22, !4
         31        ASSIGN_DIM                                               $23, !5
         32        OP_DATA                                                  <true>
    6    33        ASSIGN_OP                                     1          !2, 86400
         34    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         35      > JMPNZ                                                    ~26, ->10
   13    36    >   INIT_FCALL                                               'var_dump'
         37        SEND_VAR                                                 !6
         38        DO_ICALL                                                 
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.03 ms | 1400 KiB | 19 Q