<?php class A { public function __construct(\DateTime $data = null) { $data = is_null($data) ? new \DateTime() : $data; var_export($data->getTimestamp()); } } new A(new \DateTime()); new A;
You have javascript disabled. You will not be able to edit any code.