3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); $time=-62167046400; // 0000-01-03 0-01-1 var_dump(date('Y-m-d o-W-N', $time - 86400)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 2)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 3)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 4)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 5));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1eFAY
function name:  (null)
number of ops:  45
compiled vars:  !0 = $time
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
         1        SEND_VAL                                                 'UTC'
         2        DO_ICALL                                                 
   4     3        ASSIGN                                                   !0, -62167046400
   6     4        INIT_FCALL                                               'var_dump'
         5        INIT_FCALL                                               'date'
         6        SEND_VAL                                                 'Y-m-d+o-W-N'
         7        SUB                                              ~3      !0, 86400
         8        SEND_VAL                                                 ~3
         9        DO_ICALL                                         $4      
        10        SEND_VAR                                                 $4
        11        DO_ICALL                                                 
   7    12        INIT_FCALL                                               'var_dump'
        13        INIT_FCALL                                               'date'
        14        SEND_VAL                                                 'Y-m-d+o-W-N'
        15        SUB                                              ~6      !0, 172800
        16        SEND_VAL                                                 ~6
        17        DO_ICALL                                         $7      
        18        SEND_VAR                                                 $7
        19        DO_ICALL                                                 
   8    20        INIT_FCALL                                               'var_dump'
        21        INIT_FCALL                                               'date'
        22        SEND_VAL                                                 'Y-m-d+o-W-N'
        23        SUB                                              ~9      !0, 259200
        24        SEND_VAL                                                 ~9
        25        DO_ICALL                                         $10     
        26        SEND_VAR                                                 $10
        27        DO_ICALL                                                 
   9    28        INIT_FCALL                                               'var_dump'
        29        INIT_FCALL                                               'date'
        30        SEND_VAL                                                 'Y-m-d+o-W-N'
        31        SUB                                              ~12     !0, 345600
        32        SEND_VAL                                                 ~12
        33        DO_ICALL                                         $13     
        34        SEND_VAR                                                 $13
        35        DO_ICALL                                                 
  10    36        INIT_FCALL                                               'var_dump'
        37        INIT_FCALL                                               'date'
        38        SEND_VAL                                                 'Y-m-d+o-W-N'
        39        SUB                                              ~15     !0, 432000
        40        SEND_VAL                                                 ~15
        41        DO_ICALL                                         $16     
        42        SEND_VAR                                                 $16
        43        DO_ICALL                                                 
        44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0