3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bithdayDate = strtotime("1993-08-20"); $tdate = strtotime(date("Y-m-d")); echo floor((time() - strtotime($bithdayDate))/31556926);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b1pOX
function name:  (null)
number of ops:  23
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                                               'time'
         13        DO_ICALL                                         $7      
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $8      
         17        SUB                                              ~9      $7, $8
         18        DIV                                              ~10     ~9, 31556926
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $11     
         21        ECHO                                                     $11
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.56 ms | 1395 KiB | 21 Q