3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_marko_age($birthday) { $today= time(); $age = ($today - $birthday)/(60*60*24*365); $float_value_of_age = floor($age); return $float_value_of_age; } echo "My name is Marko and I am <strong>"; echo get_marko_age('1985-01-09'); // here to change date and it automatically show number of years echo "</strong> years old.";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pkl6n
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ECHO                                                     'My+name+is+Marko+and+I+am+%3Cstrong%3E'
   13     1        INIT_FCALL                                               'get_marko_age'
          2        SEND_VAL                                                 '1985-01-09'
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
   14     5        ECHO                                                     '%3C%2Fstrong%3E+years+old.'
          6      > RETURN                                                   1

Function get_marko_age:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pkl6n
function name:  get_marko_age
number of ops:  13
compiled vars:  !0 = $birthday, !1 = $today, !2 = $age, !3 = $float_value_of_age
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'time'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !1, $4
    6     4        SUB                                              ~6      !1, !0
          5        DIV                                              ~7      ~6, 31536000
          6        ASSIGN                                                   !2, ~7
    7     7        INIT_FCALL                                               'floor'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !3, $9
    8    11      > RETURN                                                   !3
   10    12*     > RETURN                                                   null

End of function get_marko_age

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 1397 KiB | 18 Q