3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo new DateTime("today") - new DateTime(substr("2014-10-10", 0, 10));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bCHKQ
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $0      'DateTime'
          1        SEND_VAL_EX                                              'today'
          2        DO_FCALL                                      0          
          3        NEW                                              $2      'DateTime'
          4        INIT_FCALL                                               'substr'
          5        SEND_VAL                                                 '2014-10-10'
          6        SEND_VAL                                                 0
          7        SEND_VAL                                                 10
          8        DO_ICALL                                         $3      
          9        SEND_VAR_NO_REF_EX                                       $3
         10        DO_FCALL                                      0          
         11        SUB                                              ~5      $0, $2
         12        ECHO                                                     ~5
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.71 ms | 1394 KiB | 15 Q