3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start_date =strtotime('2013-02-13 12:02:00'); $end_date =strtotime('2013-02-20 12:02:00'); $total = ($end_datestart_date - $start_date); echo date("Y-m-d H:i:s",$total);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AFB9q
function name:  (null)
number of ops:  16
compiled vars:  !0 = $start_date, !1 = $end_date, !2 = $total, !3 = $end_datestart_date
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2013-02-13+12%3A02%3A00'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2013-02-20+12%3A02%3A00'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    4     8        SUB                                              ~8      !3, !0
          9        ASSIGN                                                   !2, ~8
    5    10        INIT_FCALL                                               'date'
         11        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $10     
         14        ECHO                                                     $10
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.5 ms | 1394 KiB | 17 Q