3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.72 ms | 1394 KiB | 15 Q