3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = date('Y-m-d H:m:s'); $end = date('Y-m-d H:m:s', strtotime($start . ' +24 hours')); $days = (strtotime($end) - strtotime($start)) / (24 * 60 * 60); echo $days; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/j3mAp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $start, !1 = $end, !2 = $days
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Am%3As'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d+H%3Am%3As'
          6        INIT_FCALL                                               'strtotime'
          7        CONCAT                                           ~5      !0, '+%2B24+hours'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    6    13        INIT_FCALL                                               'strtotime'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $10     
         19        SUB                                              ~11     $9, $10
         20        DIV                                              ~12     ~11, 86400
         21        ASSIGN                                                   !2, ~12
    9    22        ECHO                                                     !2
   12    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.77 ms | 1395 KiB | 17 Q