3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = 60; echo '<pre>'; $day = date('d-m-Y H:i:s', (1444311162489/1000) + $days * 24 * 60 * 60); $expiration_date = new DateTime($day, new DateTimeZone('UTC')); $now = new DateTime('now', new DateTimeZone('UTC')); $is_expired = ($now > $expiration_date); $days = ceil(($expiration_date->format('U') - $now->format('U')) / (60 * 60 * 24)); var_dump(($expiration_date->format('U') - $now->format('U')) / (60 * 60 * 24)); if ($days > 60) { $days = 60; } var_dump($days);
Output for git.master, git.master_jit, rfc.property-hooks
<pre> Deprecated: Implicit conversion from float 1449495162.489 to int loses precision in /in/g410c on line 5 float(6.014097222222222) float(7)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
53.74 ms | 401 KiB | 8 Q