3v4l.org

run code in 300+ PHP versions simultaneously
<?php print ' - '; $i = mktime(0,0,0,10,14,2013); $f = mktime(0,0,0,10,28,2013); print ($f - $i); print ' - '; print floor(($f - $i)/86400); print ' - ';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7Xkrv
function name:  (null)
number of ops:  30
compiled vars:  !0 = $i, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     '+-+'
    4     1        INIT_FCALL                                               'mktime'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 10
          6        SEND_VAL                                                 14
          7        SEND_VAL                                                 2013
          8        DO_ICALL                                         $2      
          9        ASSIGN                                                   !0, $2
    5    10        INIT_FCALL                                               'mktime'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 10
         15        SEND_VAL                                                 28
         16        SEND_VAL                                                 2013
         17        DO_ICALL                                         $4      
         18        ASSIGN                                                   !1, $4
    6    19        SUB                                              ~6      !1, !0
         20        ECHO                                                     ~6
    7    21        ECHO                                                     '+-+'
    8    22        INIT_FCALL                                               'floor'
         23        SUB                                              ~7      !1, !0
         24        DIV                                              ~8      ~7, 86400
         25        SEND_VAL                                                 ~8
         26        DO_ICALL                                         $9      
         27        ECHO                                                     $9
    9    28        ECHO                                                     '+-+'
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.32 ms | 1395 KiB | 17 Q