3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.96 ms | 1400 KiB | 17 Q