3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dateMin = new DateTimeImmutable('@'.PHP_INT_MIN); $dateMax = new DateTimeImmutable('@'.PHP_INT_MAX); $interval = new DateInterval('PT1S'); var_dump([ 'min' => $dateMin->format('Y-m-d H:i:s'), 'min -1 second' => $dateMin->sub($interval)->format('Y-m-d H:i:s'), 'max' => $dateMax->format('Y-m-d H:i:s'), 'max +1 second' => $dateMax->add($interval)->format('Y-m-d H:i:s'), ]);
Output for git.master
array(4) { ["min"]=> string(28) "-292277022657-01-27 08:29:53" ["min -1 second"]=> string(28) "-292277022657-01-27 08:29:52" ["max"]=> string(27) "292277026596-12-04 15:30:07" ["max +1 second"]=> string(28) "-292277022657-01-27 08:29:52" }
Output for git.master_jit, rfc.property-hooks
array(4) { ["min"]=> string(28) "-292277022657-01-27 08:29:52" ["min -1 second"]=> string(27) "292277026596-12-04 15:30:07" ["max"]=> string(27) "292277026596-12-04 15:30:07" ["max +1 second"]=> string(28) "-292277022657-01-27 08:29:52" }

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:
135.32 ms | 407 KiB | 5 Q