3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.64 ms | 1395 KiB | 21 Q