3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nDate = date_create(); date_sub($nDate, date_interval_create_from_date_string("30 days")); echo $nDate->format('Y-m-d'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JD8rr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $nDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_create'
          1        DO_ICALL                                         $1      
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'date_sub'
          4        SEND_VAR                                                 !0
          5        INIT_FCALL                                               'date_interval_create_from_date_string'
          6        SEND_VAL                                                 '30+days'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    5    10        INIT_METHOD_CALL                                         !0, 'format'
         11        SEND_VAL_EX                                              'Y-m-d'
         12        DO_FCALL                                      0  $5      
         13        ECHO                                                     $5
    7    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.84 ms | 1394 KiB | 19 Q