3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Detroit'); $from = 1442605564; $to = 1441234237; var_dump(intval( abs( $from - $to ) / 86400 ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DZbkQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $from, !1 = $to
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date_default_timezone_set'
          1        SEND_VAL                                                 'America%2FDetroit'
          2        DO_ICALL                                                 
    3     3        ASSIGN                                                   !0, 1442605564
    4     4        ASSIGN                                                   !1, 1441234237
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'abs'
          7        SUB                                              ~5      !0, !1
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        DIV                                              ~7      $6, 86400
         11        CAST                                          4  ~8      ~7
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.75 ms | 1394 KiB | 19 Q