3v4l.org

run code in 300+ PHP versions simultaneously
<?php function format(string $s) { print $s . ' is interprted as ' . date('r', strtotime($s)) . PHP_EOL; } format('5/6/22'); format('5.6.22'); format('5-6-22'); format('5/6/2022'); format('5.6.2022'); format('5-6-2022');
Output for git.master, git.master_jit, rfc.property-hooks
5/6/22 is interprted as Fri, 06 May 2022 00:00:00 +0200 5.6.22 is interprted as Thu, 30 Jun 2022 05:06:22 +0200 5-6-22 is interprted as Wed, 22 Jun 2005 00:00:00 +0200 5/6/2022 is interprted as Fri, 06 May 2022 00:00:00 +0200 5.6.2022 is interprted as Sun, 05 Jun 2022 00:00:00 +0200 5-6-2022 is interprted as Sun, 05 Jun 2022 00:00:00 +0200

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.65 ms | 402 KiB | 8 Q