3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = date('w'); $week_start = new DateTime(strtotime('-'.$day.' days')); echo(date_format($week_start, 'm/d/Y'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4IQAb
function name:  (null)
number of ops:  19
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        INIT_FCALL                                               'strtotime'
          6        CONCAT                                           ~5      '-', !0
          7        CONCAT                                           ~6      ~5, '+days'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR_NO_REF_EX                                       $7
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $4
    5    13        INIT_FCALL                                               'date_format'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 'm%2Fd%2FY'
         16        DO_ICALL                                         $10     
         17        ECHO                                                     $10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.51 ms | 1394 KiB | 19 Q