3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('d/m/Y'); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W".date("W")."-5")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-1")); print "\n"; echo date('d/m/Y', strtotime(date('Y')."-W27-5")); print "\n"; echo date('N', strtotime(date('Y')."-W27-".date('t'))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2quu6
function name:  (null)
number of ops:  84
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'date'
         1        SEND_VAL                                                 'd%2Fm%2FY'
         2        DO_ICALL                                         $0      
         3        ECHO                                                     $0
   3     4        ECHO                                                     '%0A'
   4     5        INIT_FCALL                                               'date'
         6        SEND_VAL                                                 'd%2Fm%2FY'
         7        INIT_FCALL                                               'strtotime'
         8        INIT_FCALL                                               'date'
         9        SEND_VAL                                                 'Y'
        10        DO_ICALL                                         $1      
        11        CONCAT                                           ~2      $1, '-W'
        12        INIT_FCALL                                               'date'
        13        SEND_VAL                                                 'W'
        14        DO_ICALL                                         $3      
        15        CONCAT                                           ~4      ~2, $3
        16        CONCAT                                           ~5      ~4, '-1'
        17        SEND_VAL                                                 ~5
        18        DO_ICALL                                         $6      
        19        SEND_VAR                                                 $6
        20        DO_ICALL                                         $7      
        21        ECHO                                                     $7
   5    22        ECHO                                                     '%0A'
   6    23        INIT_FCALL                                               'date'
        24        SEND_VAL                                                 'd%2Fm%2FY'
        25        INIT_FCALL                                               'strtotime'
        26        INIT_FCALL                                               'date'
        27        SEND_VAL                                                 'Y'
        28        DO_ICALL                                         $8      
        29        CONCAT                                           ~9      $8, '-W'
        30        INIT_FCALL                                               'date'
        31        SEND_VAL                                                 'W'
        32        DO_ICALL                                         $10     
        33        CONCAT                                           ~11     ~9, $10
        34        CONCAT                                           ~12     ~11, '-5'
        35        SEND_VAL                                                 ~12
        36        DO_ICALL                                         $13     
        37        SEND_VAR                                                 $13
        38        DO_ICALL                                         $14     
        39        ECHO                                                     $14
   7    40        ECHO                                                     '%0A'
   8    41        INIT_FCALL                                               'date'
        42        SEND_VAL                                                 'd%2Fm%2FY'
        43        INIT_FCALL                                               'strtotime'
        44        INIT_FCALL                                               'date'
        45        SEND_VAL                                                 'Y'
        46        DO_ICALL                                         $15     
        47        CONCAT                                           ~16     $15, '-W27-1'
        48        SEND_VAL                                                 ~16
        49        DO_ICALL                                         $17     
        50        SEND_VAR                                                 $17
        51        DO_ICALL                                         $18     
        52        ECHO                                                     $18
   9    53        ECHO                                                     '%0A'
  10    54        INIT_FCALL                                               'date'
        55        SEND_VAL                                                 'd%2Fm%2FY'
        56        INIT_FCALL                                               'strtotime'
        57        INIT_FCALL                                               'date'
        58        SEND_VAL                                                 'Y'
        59        DO_ICALL                                         $19     
        60        CONCAT                                           ~20     $19, '-W27-5'
        61        SEND_VAL                                                 ~20
        62        DO_ICALL                                         $21     
        63        SEND_VAR                                                 $21
        64        DO_ICALL                                         $22     
        65        ECHO                                                     $22
  11    66        ECHO                                                     '%0A'
  12    67        INIT_FCALL                                               'date'
        68        SEND_VAL                                                 'N'
        69        INIT_FCALL                                               'strtotime'
        70        INIT_FCALL                                               'date'
        71        SEND_VAL                                                 'Y'
        72        DO_ICALL                                         $23     
        73        CONCAT                                           ~24     $23, '-W27-'
        74        INIT_FCALL                                               'date'
        75        SEND_VAL                                                 't'
        76        DO_ICALL                                         $25     
        77        CONCAT                                           ~26     ~24, $25
        78        SEND_VAL                                                 ~26
        79        DO_ICALL                                         $27     
        80        SEND_VAR                                                 $27
        81        DO_ICALL                                         $28     
        82        ECHO                                                     $28
  13    83      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0