3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Europe/Zurich'); $now = time(); $timeHourFraction = strtotime("+0.04 days"); // ~ +1 hour $timePlus1Hour = strtotime("+1 hour"); // reference echo "now: " . date("d.m.Y H:i:s", $now) . PHP_EOL; echo "+0.0416666667d: " . date("d.m.Y H:i:s", $timeHourFraction) . PHP_EOL; echo "+1 hour: " . date("d.m.Y H:i:s", $timePlus1Hour) . PHP_EOL; echo PHP_EOL; echo "diff (+0.0416666667d - now) seconds: " . ($timeHourFraction - $now) . PHP_EOL; echo "diff (+1 hour - now) seconds: " . ($timePlus1Hour - $now) . PHP_EOL; echo "delta between both seconds: " . ($timeHourFraction - $timePlus1Hour) . PHP_EOL; echo PHP_EOL . "equal? "; var_dump($timeHourFraction === $timePlus1Hour);
Output for git.master_jit, git.master, rfc.property-hooks
now: 15.01.2026 09:35:54 +0.0416666667d: 19.01.2026 10:35:54 +1 hour: 15.01.2026 10:35:54 diff (+0.0416666667d - now) seconds: 349200 diff (+1 hour - now) seconds: 3600 delta between both seconds: 345600 equal? bool(false)

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:
36.56 ms | 406 KiB | 5 Q