3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Chicago'); var_dump(new DateTime('2014-02-28 - 1 month')); var_dump(new DateTime('2014-02-28 - 30 days'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZvjkY
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FChicago'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'var_dump'
          4        NEW                                              $1      'DateTime'
          5        SEND_VAL_EX                                              '2014-02-28+-+1+month'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $1
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'var_dump'
         10        NEW                                              $4      'DateTime'
         11        SEND_VAL_EX                                              '2014-02-28+-+30+days'
         12        DO_FCALL                                      0          
         13        SEND_VAR                                                 $4
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.36 ms | 939 KiB | 18 Q