3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.1 ms | 1394 KiB | 15 Q