3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = date('w'); $week_start = new DateTime('m-d-Y', strtotime('-'.$day.' days')); echo($week_start);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6XEUM
function name:  (null)
number of ops:  16
compiled vars:  !0 = $day, !1 = $week_start
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'w'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        NEW                                              $4      'DateTime'
          5        SEND_VAL_EX                                              'm-d-Y'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~5      '-', !0
          8        CONCAT                                           ~6      ~5, '+days'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        SEND_VAR_NO_REF_EX                                       $7
         12        DO_FCALL                                      0          
         13        ASSIGN                                                   !1, $4
    5    14        ECHO                                                     !1
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.76 ms | 1394 KiB | 17 Q