3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 9; $year = 2014; $start = mktime(0, 0, 0, $month, 1, $year); echo date('Y-m-d l', $start); for ($now = $start; date('n', $now) != $month; $now += 86400) { echo date('Y-m-d l', $now) . PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 18
Branch analysis from position: 31
Branch analysis from position: 18
filename:       /in/j40NA
function name:  (null)
number of ops:  32
compiled vars:  !0 = $month, !1 = $year, !2 = $start, !3 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9
    4     1        ASSIGN                                                   !1, 2014
    6     2        INIT_FCALL                                               'mktime'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 0
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 1
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !2, $6
    8    11        INIT_FCALL                                               'date'
         12        SEND_VAL                                                 'Y-m-d+l'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $8      
         15        ECHO                                                     $8
   10    16        ASSIGN                                                   !3, !2
         17      > JMP                                                      ->25
   11    18    >   INIT_FCALL                                               'date'
         19        SEND_VAL                                                 'Y-m-d+l'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                         $10     
         22        CONCAT                                           ~11     $10, '%0A'
         23        ECHO                                                     ~11
   10    24        ASSIGN_OP                                     1          !3, 86400
         25    >   INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'n'
         27        SEND_VAR                                                 !3
         28        DO_ICALL                                         $13     
         29        IS_NOT_EQUAL                                             !0, $13
         30      > JMPNZ                                                    ~14, ->18
   14    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1396 KiB | 17 Q