3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('d/m/Y'); echo date('d/m/Y', strtotime("1-".date('W')."-".date('Y'))); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QGpFr
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd%2Fm%2FY'
          2        DO_ICALL                                         $0      
          3        ECHO                                                     $0
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'd%2Fm%2FY'
          6        INIT_FCALL                                               'strtotime'
          7        INIT_FCALL                                               'date'
          8        SEND_VAL                                                 'W'
          9        DO_ICALL                                         $1      
         10        CONCAT                                           ~2      '1-', $1
         11        CONCAT                                           ~3      ~2, '-'
         12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y'
         14        DO_ICALL                                         $4      
         15        CONCAT                                           ~5      ~3, $4
         16        SEND_VAL                                                 ~5
         17        DO_ICALL                                         $6      
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                         $7      
         20        ECHO                                                     $7
    4    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.87 ms | 1399 KiB | 17 Q