3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set("Europe/London"); #date_default_timezone_set("Pacific/Auckland"); $date_format = 'Ymd'; $day = "Sunday 4 week ago"; $start_of_the_week = strtotime($day); $next_day = $start_of_the_week + (60 * 60 * 24 * 1); $next_day = date($date_format, $next_day); echo '<h1>'.$next_day.'</h1>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A7ppT
function name:  (null)
number of ops:  20
compiled vars:  !0 = $date_format, !1 = $day, !2 = $start_of_the_week, !3 = $next_day
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FLondon'
          2        DO_ICALL                                                 
    6     3        ASSIGN                                                   !0, 'Ymd'
    8     4        ASSIGN                                                   !1, 'Sunday+4+week+ago'
    9     5        INIT_FCALL                                               'strtotime'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !2, $7
   11     9        ADD                                              ~9      !2, 86400
         10        ASSIGN                                                   !3, ~9
   12    11        INIT_FCALL                                               'date'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $11     
         15        ASSIGN                                                   !3, $11
   14    16        CONCAT                                           ~13     '%3Ch1%3E', !3
         17        CONCAT                                           ~14     ~13, '%3C%2Fh1%3E'
         18        ECHO                                                     ~14
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.16 ms | 1012 KiB | 16 Q