3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today = new DateTime(); $currentLocationTime = new DateTime( '2014-08-01 16:27:33' ); //formatting date time string to date $gap = date_diff( $today, $currentLocationTime ); echo ( $gap ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sro3D
function name:  (null)
number of ops:  14
compiled vars:  !0 = $today, !1 = $currentLocationTime, !2 = $gap
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'DateTime'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        NEW                                              $6      'DateTime'
          4        SEND_VAL_EX                                              '2014-08-01+16%3A27%3A33'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
    4     7        INIT_FCALL                                               'date_diff'
          8        SEND_VAR                                                 !0
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
    5    12        ECHO                                                     !2
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.73 ms | 1385 KiB | 15 Q