3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bithdayDate = date("Y-m-d",strtotime("21/07/1986")); $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/5LWQP
function name:  (null)
number of ops:  26
compiled vars:  !0 = $bithdayDate, !1 = $tdate
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 '21%2F07%2F1986'
          4        DO_ICALL                                         $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !0, $3
    3     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        ASSIGN                                                   !0, $5
    4    12        INIT_FCALL                                               'strtotime'
         13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                         $8      
         18        ASSIGN                                                   !1, $8
    5    19        INIT_FCALL                                               'floor'
         20        SUB                                              ~10     !1, !0
         21        DIV                                              ~11     ~10, 31556926
         22        SEND_VAL                                                 ~11
         23        DO_ICALL                                         $12     
         24        ECHO                                                     $12
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.5 ms | 1395 KiB | 19 Q