3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new \DateTime('-14days 00:00:00')); $now = new \DateTime('00:00:00'); $now->sub(new \DateInterval('P15D')); var_dump($now);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TC2Xg
function name:  (null)
number of ops:  20
compiled vars:  !0 = $now
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $1      'DateTime'
          2        SEND_VAL_EX                                              '-14days+00%3A00%3A00'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    5     6        NEW                                              $4      'DateTime'
          7        SEND_VAL_EX                                              '00%3A00%3A00'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $4
    6    10        INIT_METHOD_CALL                                         !0, 'sub'
         11        NEW                                              $7      'DateInterval'
         12        SEND_VAL_EX                                              'P15D'
         13        DO_FCALL                                      0          
         14        SEND_VAR_NO_REF_EX                                       $7
         15        DO_FCALL                                      0          
    8    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.5 ms | 1394 KiB | 15 Q