3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = strtotime("2014-09-16"); $timestamp = strtotime('+15 weeks',$date); echo " Date=".date('Y-m-d', $timestamp); echo " Date=".date('Y-W - last digit is week in year', $timestamp);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mXPC3
function name:  (null)
number of ops:  22
compiled vars:  !0 = $date, !1 = $timestamp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2014-09-16'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    5     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '%2B15+weeks'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        ASSIGN                                                   !1, $4
    6     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      '++Date%3D', $6
         14        ECHO                                                     ~7
    8    15        INIT_FCALL                                               'date'
         16        SEND_VAL                                                 'Y-W+-+last+digit+is+week+in+year'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $8      
         19        CONCAT                                           ~9      '++Date%3D', $8
         20        ECHO                                                     ~9
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.41 ms | 1399 KiB | 17 Q