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); $val = ($expiration_date->format('U') - $now->format('U')) / (60 * 60 * 24); $days = ceil($val); var_dump($val); 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/voggF on line 5 float(6.013472222222222) 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:
56.13 ms | 401 KiB | 8 Q