3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = time(); // or your date as well $your_birth_date = strtotime("2014-06-24"); $datediff = abs($now - $your_birth_date); echo floor($datediff/(60*60*24)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VncYK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $now, !1 = $your_birth_date, !2 = $datediff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 '2014-06-24'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    5     7        INIT_FCALL                                               'abs'
          8        SUB                                              ~7      !0, !1
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    6    12        INIT_FCALL                                               'floor'
         13        DIV                                              ~10     !2, 86400
         14        SEND_VAL                                                 ~10
         15        DO_ICALL                                         $11     
         16        ECHO                                                     $11
    7    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.94 ms | 1394 KiB | 21 Q