3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateTime("now")); echo "<br/>"; var_dump(new DateTime("-7 months")); echo "<br/>"; var_dump(new DateTime("7 months ago"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SHnHB
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'DateTime'
          2        SEND_VAL_EX                                              'now'
          3        DO_FCALL                                      0          
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
    3     6        ECHO                                                     '%3Cbr%2F%3E'
    4     7        INIT_FCALL                                               'var_dump'
          8        NEW                                              $3      'DateTime'
          9        SEND_VAL_EX                                              '-7+months'
         10        DO_FCALL                                      0          
         11        SEND_VAR                                                 $3
         12        DO_ICALL                                                 
    5    13        ECHO                                                     '%3Cbr%2F%3E'
    6    14        INIT_FCALL                                               'var_dump'
         15        NEW                                              $6      'DateTime'
         16        SEND_VAL_EX                                              '7+months+ago'
         17        DO_FCALL                                      0          
         18        SEND_VAR                                                 $6
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.87 ms | 1395 KiB | 15 Q