3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bithdayDate = "1986-07-20"; $bithdayDate = strtotime($bithdayDate); $tdate = strtotime(date("Y-m-d")); echo floor(($tdate - $bithdayDate)/31556926);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vunPC
function name:  (null)
number of ops:  19
compiled vars:  !0 = $bithdayDate, !1 = $tdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1986-07-20'
    3     1        INIT_FCALL                                               'strtotime'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
    4     5        INIT_FCALL                                               'strtotime'
          6        INIT_FCALL                                               'date'
          7        SEND_VAL                                                 'Y-m-d'
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        INIT_FCALL                                               'floor'
         13        SUB                                              ~8      !1, !0
         14        DIV                                              ~9      ~8, 31556926
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                         $10     
         17        ECHO                                                     $10
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.56 ms | 1394 KiB | 19 Q