3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Sofia'); $mondayLastWeek = new DateTime("next monday"); $mondayLastWeek->sub(new DateInterval('P14D')); echo date('d.m.Y H:i:s', strtotime('1 Monday ago')) ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A2nig
function name:  (null)
number of ops:  22
compiled vars:  !0 = $mondayLastWeek
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'Europe%2FSofia'
          2        DO_ICALL                                                 
    4     3        NEW                                              $2      'DateTime'
          4        SEND_VAL_EX                                              'next+monday'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    5     7        INIT_METHOD_CALL                                         !0, 'sub'
          8        NEW                                              $5      'DateInterval'
          9        SEND_VAL_EX                                              'P14D'
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $5
         12        DO_FCALL                                      0          
    7    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'd.m.Y+H%3Ai%3As'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '1+Monday+ago'
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        ECHO                                                     $9
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.65 ms | 1395 KiB | 19 Q