3v4l.org

run code in 300+ PHP versions simultaneously
<?php $startTimeStamp = strtotime("2011/07/01"); $endTimeStamp = strtotime("2011/07/17"); $timeDiff = abs($endTimeStamp - $startTimeStamp); $numberDays = $timeDiff/86400; // and you might want to convert to integer $numberDays = intval($numberDays);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8EtjP
function name:  (null)
number of ops:  18
compiled vars:  !0 = $startTimeStamp, !1 = $endTimeStamp, !2 = $timeDiff, !3 = $numberDays
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2011%2F07%2F01'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2011%2F07%2F17'
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !1, $6
    6     8        INIT_FCALL                                               'abs'
          9        SUB                                              ~8      !1, !0
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !2, $9
    8    13        DIV                                              ~11     !2, 86400
         14        ASSIGN                                                   !3, ~11
   11    15        CAST                                          4  ~13     !3
         16        ASSIGN                                                   !3, ~13
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.46 ms | 1399 KiB | 17 Q