3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.29 ms | 1387 KiB | 17 Q