3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = strtotime('2015-05-30'); $time2 = strtotime('2015-05-01'); echo floor(($time1 - $time2)/86400);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OoZJY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $time1, !1 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 '2015-05-30'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2015-05-01'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    5     8        INIT_FCALL                                               'floor'
          9        SUB                                              ~6      !0, !1
         10        DIV                                              ~7      ~6, 86400
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        ECHO                                                     $8
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.19 ms | 1394 KiB | 17 Q