age/age.php

<?php header('content-type: text/plain; charset=utf-8');

include 'age.functions.php';
date_default_timezone_set('Europe/Oslo');
extract($_POST, EXTR_SKIP);

// Calculate
$age1 = getAge1(strtotime($birth), strtotime($now));
$age2 = getAge2($birth, $now);

// Output
echo 'Math: '.$age1.PHP_EOL;
echo 'Diff: '.$age2.PHP_EOL;