3v4l.org

run code in 300+ PHP versions simultaneously
<?php $friday = new DateTimeImmutable(); $friday = $friday->setDate(2020, 12, 18); function is_it_Friday($today) { if (!$today instanceof DateTimeImmutable) { $today = new DateTimeImmutable(); } return (int)$today->format('N') === 5; } if (is_it_Friday($friday)) { echo "it's Friday, gotta get down on Friday"; } else { echo ":("; }
Output for git.master, git.master_jit, rfc.property-hooks
it's Friday, gotta get down on Friday

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:
98.98 ms | 1350 KiB | 4 Q