3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startDate = new DateTime(date('01-m-Y')); $startDate = date_sub($startDate,new DateInterval('P1M')); echo "STARTING ".date_format($startDate,'F').PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E25cg
function name:  (null)
number of ops:  23
compiled vars:  !0 = $startDate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'DateTime'
          1        INIT_FCALL                                               'date'
          2        SEND_VAL                                                 '01-m-Y'
          3        DO_ICALL                                         $2      
          4        SEND_VAR_NO_REF_EX                                       $2
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $1
    4     7        INIT_FCALL                                               'date_sub'
          8        SEND_VAR                                                 !0
          9        NEW                                              $5      'DateInterval'
         10        SEND_VAL_EX                                              'P1M'
         11        DO_FCALL                                      0          
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !0, $7
         15        INIT_FCALL                                               'date_format'
         16        SEND_VAR                                                 !0
         17        SEND_VAL                                                 'F'
         18        DO_ICALL                                         $9      
         19        CONCAT                                           ~10     'STARTING+', $9
         20        CONCAT                                           ~11     ~10, '%0A'
         21        ECHO                                                     ~11
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1395 KiB | 19 Q