3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime("first day of ".$monthname." ".$year); while($time <= strtotime("last day of ".$monthname." ".$year)) { if((date('w',$time) + 1) % 7 > 1) { //It's a weekday. 0 = Saturday, 1 = Sunday. echo date('jS',$time)." ".$monthname; } $time += (24*60*60); //Advance One Day } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 8
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 8
Branch analysis from position: 32
Branch analysis from position: 8
Branch analysis from position: 23
filename:       /in/vHLhp
function name:  (null)
number of ops:  33
compiled vars:  !0 = $time, !1 = $monthname, !2 = $year
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        CONCAT                                           ~3      'first+day+of+', !1
          2        CONCAT                                           ~4      ~3, '+'
          3        CONCAT                                           ~5      ~4, !2
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !0, $6
    3     7      > JMP                                                      ->24
    4     8    >   INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'w'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        ADD                                              ~9      $8, 1
         13        MOD                                              ~10     ~9, 7
         14        IS_SMALLER                                               1, ~10
         15      > JMPZ                                                     ~11, ->23
    5    16    >   INIT_FCALL                                               'date'
         17        SEND_VAL                                                 'jS'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $12     
         20        CONCAT                                           ~13     $12, '+'
         21        CONCAT                                           ~14     ~13, !1
         22        ECHO                                                     ~14
    7    23    >   ASSIGN_OP                                     1          !0, 86400
    3    24    >   INIT_FCALL                                               'strtotime'
         25        CONCAT                                           ~16     'last+day+of+', !1
         26        CONCAT                                           ~17     ~16, '+'
         27        CONCAT                                           ~18     ~17, !2
         28        SEND_VAL                                                 ~18
         29        DO_ICALL                                         $19     
         30        IS_SMALLER_OR_EQUAL                                      !0, $19
         31      > JMPNZ                                                    ~20, ->8
    9    32    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.57 ms | 1396 KiB | 17 Q