3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.49 ms | 1394 KiB | 19 Q