3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set(); $todayLessOneMonth = new DateTime('today -1 month'); $todayLessOneMonth->format('Y-m-d');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GocCl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $todayLessOneMonth
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        DO_ICALL                                                 
    3     2        NEW                                              $2      'DateTime'
          3        SEND_VAL_EX                                              'today+-1+month'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    4     6        INIT_METHOD_CALL                                         !0, 'format'
          7        SEND_VAL_EX                                              'Y-m-d'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.42 ms | 1394 KiB | 15 Q