3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bithdayDate = strtotime("1993-07-19"); $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/HSlR4
function name:  (null)
number of ops:  18
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-07-19'
          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        SUB                                              ~7      !1, !0
         13        DIV                                              ~8      ~7, 31556926
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                         $9      
         16        ECHO                                                     $9
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.1 ms | 1386 KiB | 19 Q