<?php
$dayoftheweek = date(‘w’); //PHP : from 0 (sunday) to 6 (pour saturday)if ($dayoftheweek == 0)$dayoftheweek = 7;$monday= mktime(0, 0, 0, date(“m”) , date(“d”) – $dayoftheweek +1, date(“Y”));$sunday= mktime(0, 0, 0, date(“m”) , date(“d”) + 7 – $dayoftheweek, date(“Y”));echo ‘Week from ‘ . date(‘d-m-Y’, $monday) . ‘ to ‘ . date(‘d-m-Y’, $sunday) ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/Y7KEX
function name: (null)
number of ops: 6
compiled vars: !0 = $dayoftheweek
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
2 0 E > INIT_FCALL 'date'
1 FETCH_CONSTANT ~1 '%E2%80%98w%E2%80%99'
2 SEND_VAL ~1
3 DO_ICALL $2
4 ASSIGN !0, $2
5 > RETURN 1
Generated using Vulcan Logic Dumper, using php 8.0.0
preferences:
146.62 ms | 1398 KiB | 15 Q