3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cdate=date('2015-06-20'); $weekno = date('W',strtotime($cdate)); $yr = date('Y',strtotime($cdate)); $dt = $yr."W".$weekno ; echo date('Y-m-d',strtotime( $dt)); $dtt=strtotime("+6 days", strtotime($dt)); echo date('Y-m-d', $dtt); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UmZYd
function name:  (null)
number of ops:  45
compiled vars:  !0 = $cdate, !1 = $weekno, !2 = $yr, !3 = $dt, !4 = $dtt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 '2015-06-20'
          2        DO_ICALL                                         $5      
          3        ASSIGN                                                   !0, $5
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'W'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $7      
          9        SEND_VAR                                                 $7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !1, $8
    4    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    5    20        CONCAT                                           ~13     !2, 'W'
         21        CONCAT                                           ~14     ~13, !1
         22        ASSIGN                                                   !3, ~14
    6    23        INIT_FCALL                                               'date'
         24        SEND_VAL                                                 'Y-m-d'
         25        INIT_FCALL                                               'strtotime'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $16     
         28        SEND_VAR                                                 $16
         29        DO_ICALL                                         $17     
         30        ECHO                                                     $17
    7    31        INIT_FCALL                                               'strtotime'
         32        SEND_VAL                                                 '%2B6+days'
         33        INIT_FCALL                                               'strtotime'
         34        SEND_VAR                                                 !3
         35        DO_ICALL                                         $18     
         36        SEND_VAR                                                 $18
         37        DO_ICALL                                         $19     
         38        ASSIGN                                                   !4, $19
    8    39        INIT_FCALL                                               'date'
         40        SEND_VAL                                                 'Y-m-d'
         41        SEND_VAR                                                 !4
         42        DO_ICALL                                         $21     
         43        ECHO                                                     $21
    9    44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.04 ms | 1400 KiB | 17 Q