3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 9; $year = 2014; $start = mktime(0, 0, 0, $month, 1, $year); for ($now = $start; date('n', $now) != $month; $now += 86400) { echo date('Y-m-d l') . PHP_EOL; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/GKm55
function name:  (null)
number of ops:  26
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        ASSIGN                                                   !3, !2
         12      > JMP                                                      ->19
    9    13    >   INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d+l'
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     $9, '%0A'
         17        ECHO                                                     ~10
    8    18        ASSIGN_OP                                     1          !3, 86400
         19    >   INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'n'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $12     
         23        IS_NOT_EQUAL                                             !0, $12
         24      > JMPNZ                                                    ~13, ->13
   12    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.71 ms | 1395 KiB | 17 Q