3v4l.org

run code in 300+ PHP versions simultaneously
<?php // just for you, my one true live <3 happy valentine :) date_default_timezone_set( 'Europe/Budapest' ); $d = new DateTime('2015-01-01'); for ($i=0;$i<370;$i++) { if ($d->format('Y')>2015) break; if (!in_array( $d->format( 'N' ) , array( 6 , 7 ))) { printf( "%s\n" , $d->format( 'Y-m-d' ) ); } $d->add( new DateInterval( 'P1D' ) ); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 38
Branch analysis from position: 38
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 9
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 31
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 40, Position 2 = 9
Branch analysis from position: 40
Branch analysis from position: 9
Branch analysis from position: 31
filename:       /in/2sck7
function name:  (null)
number of ops:  41
compiled vars:  !0 = $d, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FBudapest'
          2        DO_ICALL                                                 
    4     3        NEW                                              $3      'DateTime'
          4        SEND_VAL_EX                                              '2015-01-01'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    5     7        ASSIGN                                                   !1, 0
          8      > JMP                                                      ->38
    6     9    >   INIT_METHOD_CALL                                         !0, 'format'
         10        SEND_VAL_EX                                              'Y'
         11        DO_FCALL                                      0  $7      
         12        IS_SMALLER                                               2015, $7
         13      > JMPZ                                                     ~8, ->15
         14    > > JMP                                                      ->40
    7    15    >   INIT_FCALL                                               'in_array'
         16        INIT_METHOD_CALL                                         !0, 'format'
         17        SEND_VAL_EX                                              'N'
         18        DO_FCALL                                      0  $9      
         19        SEND_VAR                                                 $9
         20        SEND_VAL                                                 <array>
         21        DO_ICALL                                         $10     
         22        BOOL_NOT                                         ~11     $10
         23      > JMPZ                                                     ~11, ->31
    8    24    >   INIT_FCALL                                               'printf'
         25        SEND_VAL                                                 '%25s%0A'
         26        INIT_METHOD_CALL                                         !0, 'format'
         27        SEND_VAL_EX                                              'Y-m-d'
         28        DO_FCALL                                      0  $12     
         29        SEND_VAR                                                 $12
         30        DO_ICALL                                                 
   10    31    >   INIT_METHOD_CALL                                         !0, 'add'
         32        NEW                                              $14     'DateInterval'
         33        SEND_VAL_EX                                              'P1D'
         34        DO_FCALL                                      0          
         35        SEND_VAR_NO_REF_EX                                       $14
         36        DO_FCALL                                      0          
    5    37        PRE_INC                                                  !1
         38    >   IS_SMALLER                                               !1, 370
         39      > JMPNZ                                                    ~18, ->9
   13    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.68 ms | 1400 KiB | 19 Q