- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.7 - 5.6.13
- Parse error: syntax error, unexpected 'key' (T_STRING) in /in/u9smI on line 5
Process exited with code 255.
<?php
$date = array('2014' => 0);
end($date);
echo key($date).'<br/>';
$year = int()key($date);
$newDate = new DateTime($year);
echo $newDate->format('Y').'<br/>';