3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.98 ms | 1398 KiB | 15 Q