3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = date('m/d/y', date_sub(date_create(),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/Ps3gA
function name:  (null)
number of ops:  21
compiled vars:  !0 = $startDate, !1 = $endDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'm%2Fd%2Fy'
          2        INIT_FCALL                                               'date_sub'
          3        INIT_FCALL                                               'date_create'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        INIT_FCALL                                               'date_interval_create_from_date_string'
          7        SEND_VAL                                                 '7+days'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                         $5      
         13        ASSIGN                                                   !0, $5
    3    14        INIT_FCALL                                               'date'
         15        SEND_VAL                                                 'm%2Fd%2Fy'
         16        DO_ICALL                                         $7      
         17        ASSIGN                                                   !1, $7
    4    18        ECHO                                                     !0
    5    19        ECHO                                                     !1
    6    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.9 ms | 1395 KiB | 21 Q