3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new DateTime() - new DateTime('2014-09-21 00:00:00'); var_dump($foo->format('Y'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Cnf3B
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'DateTime'
          1        DO_FCALL                                      0          
          2        NEW                                              $3      'DateTime'
          3        SEND_VAL_EX                                              '2014-09-21+00%3A00%3A00'
          4        DO_FCALL                                      0          
          5        SUB                                              ~5      $1, $3
          6        ASSIGN                                                   !0, ~5
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !0, 'format'
          9        SEND_VAL_EX                                              'Y'
         10        DO_FCALL                                      0  $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.1 ms | 1394 KiB | 15 Q