3v4l.org

run code in 300+ PHP versions simultaneously
<?php print(date('Y W', strtotime('Monday', strtotime('yesterday')))."\n"); print(date('Y W', strtotime('Monday this week', strtotime('yesterday')))."\n"); print(date('Y W', strtotime('this Monday', strtotime('yesterday')))."\n"); print(date('Y W', strtotime('last Monday', strtotime('yesterday')))."\n");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PG4pe
function name:  (null)
number of ops:  53
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y+W'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'Monday'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'yesterday'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        CONCAT                                           ~3      $2, '%0A'
         12        ECHO                                                     ~3
    4    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y+W'
         15        INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'Monday+this+week'
         17        INIT_FCALL                                               'strtotime'
         18        SEND_VAL                                                 'yesterday'
         19        DO_ICALL                                         $4      
         20        SEND_VAR                                                 $4
         21        DO_ICALL                                         $5      
         22        SEND_VAR                                                 $5
         23        DO_ICALL                                         $6      
         24        CONCAT                                           ~7      $6, '%0A'
         25        ECHO                                                     ~7
    5    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'Y+W'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 'this+Monday'
         30        INIT_FCALL                                               'strtotime'
         31        SEND_VAL                                                 'yesterday'
         32        DO_ICALL                                         $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                         $9      
         35        SEND_VAR                                                 $9
         36        DO_ICALL                                         $10     
         37        CONCAT                                           ~11     $10, '%0A'
         38        ECHO                                                     ~11
    6    39        INIT_FCALL                                               'date'
         40        SEND_VAL                                                 'Y+W'
         41        INIT_FCALL                                               'strtotime'
         42        SEND_VAL                                                 'last+Monday'
         43        INIT_FCALL                                               'strtotime'
         44        SEND_VAL                                                 'yesterday'
         45        DO_ICALL                                         $12     
         46        SEND_VAR                                                 $12
         47        DO_ICALL                                         $13     
         48        SEND_VAR                                                 $13
         49        DO_ICALL                                         $14     
         50        CONCAT                                           ~15     $14, '%0A'
         51        ECHO                                                     ~15
         52      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.87 ms | 1400 KiB | 17 Q