3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.8 ms | 1386 KiB | 19 Q