3v4l.org

run code in 300+ PHP versions simultaneously
<?php $day = date('w'); $week_start = date('m-d-Y', strtotime('-'.$day.' days')); $week_end = date('m-d-Y', strtotime('+'.(6-$day).' days'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vglSQ
function name:  (null)
number of ops:  26
compiled vars:  !0 = $day, !1 = $week_start, !2 = $week_end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'w'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 '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                                                 $7
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !1, $8
    5    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'm-d-Y'
         16        INIT_FCALL                                               'strtotime'
         17        SUB                                              ~10     6, !0
         18        CONCAT                                           ~11     '%2B', ~10
         19        CONCAT                                           ~12     ~11, '+days'
         20        SEND_VAL                                                 ~12
         21        DO_ICALL                                         $13     
         22        SEND_VAR                                                 $13
         23        DO_ICALL                                         $14     
         24        ASSIGN                                                   !2, $14
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.43 ms | 940 KiB | 18 Q