3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.02 ms | 1394 KiB | 15 Q