3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timestamp = strtotime('2019-01-18'); $date = date('Y-m-d', $timestamp); $mthDays = date('t', $timestamp); $dexpl = explode('-', $date); $y = 0; while ($y <= $mthDays) { echo date('Y-m-d',strtotime($dexpl[0]."-".$dexpl[1]."-".$y)) . \PHP_EOL; $y++; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 21
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 21
Branch analysis from position: 39
Branch analysis from position: 21
filename:       /in/TiHtu
function name:  (null)
number of ops:  40
compiled vars:  !0 = $timestamp, !1 = $date, !2 = $mthDays, !3 = $dexpl, !4 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2019-01-18'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 't'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $9      
         13        ASSIGN                                                   !2, $9
    6    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '-'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !3, $11
    9    19        ASSIGN                                                   !4, 0
   10    20      > JMP                                                      ->37
   11    21    >   INIT_FCALL                                               'date'
         22        SEND_VAL                                                 'Y-m-d'
         23        INIT_FCALL                                               'strtotime'
         24        FETCH_DIM_R                                      ~14     !3, 0
         25        CONCAT                                           ~15     ~14, '-'
         26        FETCH_DIM_R                                      ~16     !3, 1
         27        CONCAT                                           ~17     ~15, ~16
         28        CONCAT                                           ~18     ~17, '-'
         29        CONCAT                                           ~19     ~18, !4
         30        SEND_VAL                                                 ~19
         31        DO_ICALL                                         $20     
         32        SEND_VAR                                                 $20
         33        DO_ICALL                                         $21     
         34        CONCAT                                           ~22     $21, '%0A'
         35        ECHO                                                     ~22
   12    36        PRE_INC                                                  !4
   10    37    >   IS_SMALLER_OR_EQUAL                                      !4, !2
         38      > JMPNZ                                                    ~24, ->21
   13    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
237.4 ms | 1003 KiB | 16 Q