- 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 '$callback' (T_VARIABLE) in /in/5ochi on line 7
Process exited with code 255.
<?php
$callback = function (\Datetime $now) {
echo $now->format('Y');
}
$callback(date_create());