3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strftime("%Y %W", strtotime("-1 week", strtotime("2013W01"))) . "\n"; echo strftime("%Y %W", strtotime("+1 week", strtotime("2012W52"))) . "\n"; echo gmdate("Y W", strtotime("2012W53")) . "\n"; echo strftime("%Y %W", strtotime("2012W53")) . "\n"; echo date("Y W", strtotime("2012W53")) . "\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Svuk1
function name:  (null)
number of ops:  54
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strftime'
          1        SEND_VAL                                                 '%25Y+%25W'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '-1+week'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013W01'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        CONCAT                                           ~3      $2, '%0A'
         12        ECHO                                                     ~3
    3    13        INIT_FCALL                                               'strftime'
         14        SEND_VAL                                                 '%25Y+%25W'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '%2B1+week'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 '2012W52'
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                         $6      
         24        CONCAT                                           ~7      $6, '%0A'
         25        ECHO                                                     ~7
    4    26        INIT_FCALL                                               'gmdate'
         27        SEND_VAL                                                 'Y+W'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 '2012W53'
         30        DO_ICALL                                         $8      
         31        SEND_VAR                                                 $8
         32        DO_ICALL                                         $9      
         33        CONCAT                                           ~10     $9, '%0A'
         34        ECHO                                                     ~10
    5    35        INIT_FCALL                                               'strftime'
         36        SEND_VAL                                                 '%25Y+%25W'
         37        INIT_FCALL                                               'strtotime'
         38        SEND_VAL                                                 '2012W53'
         39        DO_ICALL                                         $11     
         40        SEND_VAR                                                 $11
         41        DO_ICALL                                         $12     
         42        CONCAT                                           ~13     $12, '%0A'
         43        ECHO                                                     ~13
    6    44        INIT_FCALL                                               'date'
         45        SEND_VAL                                                 'Y+W'
         46        INIT_FCALL                                               'strtotime'
         47        SEND_VAL                                                 '2012W53'
         48        DO_ICALL                                         $14     
         49        SEND_VAR                                                 $14
         50        DO_ICALL                                         $15     
         51        CONCAT                                           ~16     $15, '%0A'
         52        ECHO                                                     ~16
    7    53      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.65 ms | 1400 KiB | 21 Q