3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTs = time(); // for testing //$startTs = strtotime('05/03/2015'); $baseDay = strtotime('+1', $startTs); echo $ts = date('d.m.Y', strtotime('last sunday', $baseDay)); echo PHP_EOL; echo $ts = date('d.m.Y', strtotime('this saturday', $baseDay));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FuQIG
function name:  (null)
number of ops:  30
compiled vars:  !0 = $startTs, !1 = $baseDay, !2 = $ts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    7     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '%2B1'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    9     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'd.m.Y'
         10        INIT_FCALL                                               'strtotime'
         11        SEND_VAL                                                 'last+sunday'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        SEND_VAR                                                 $7
         15        DO_ICALL                                         $8      
         16        ASSIGN                                           ~9      !2, $8
         17        ECHO                                                     ~9
   10    18        ECHO                                                     '%0A'
   11    19        INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'd.m.Y'
         21        INIT_FCALL                                               'strtotime'
         22        SEND_VAL                                                 'this+saturday'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $10     
         25        SEND_VAR                                                 $10
         26        DO_ICALL                                         $11     
         27        ASSIGN                                           ~12     !2, $11
         28        ECHO                                                     ~12
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.74 ms | 1395 KiB | 19 Q