3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to_date = time(); // Input your date here e.g. strtotime("2014-01-02") $from_date = strtotime("2012-01-31"); $day_diff = $to_date - $from_date; echo floor($day_diff/(60*60*24));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ehVuZ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $to_date, !1 = $from_date, !2 = $day_diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2012-01-31'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    4     7        SUB                                              ~7      !0, !1
          8        ASSIGN                                                   !2, ~7
    5     9        INIT_FCALL                                               'floor'
         10        DIV                                              ~9      !2, 86400
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                         $10     
         13        ECHO                                                     $10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.46 ms | 1394 KiB | 19 Q