3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.31 ms | 1395 KiB | 17 Q