3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.6 ms | 1394 KiB | 15 Q