3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTimeStamp = strtotime("2007/05/15 12:00"); $endTimeStamp = strtotime("2015/07/25 11:15"); $timeDiff = abs($endTimeStamp - $startTimeStamp); echo $timeDiff;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YmJ2I
function name:  (null)
number of ops:  15
compiled vars:  !0 = $startTimeStamp, !1 = $endTimeStamp, !2 = $timeDiff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2007%2F05%2F15+12%3A00'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2015%2F07%2F25+11%3A15'
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    5     8        INIT_FCALL                                               'abs'
          9        SUB                                              ~7      !1, !0
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
    7    13        ECHO                                                     !2
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.25 ms | 1394 KiB | 17 Q