3v4l.org

run code in 300+ PHP versions simultaneously
<?php defined("PHP_EOL") || define("PHP_EOL", "\n"); if (function_exists('date_default_timezone_get')) { echo "System default timezone: ", date_default_timezone_get(), PHP_EOL; } $time = strtotime('1582-12-13'); echo $time . PHP_EOL; $time526 = -12214109972; $time430 = -12214108800; $date526 = gmdate('Y-m-d H:i:s', $time526); $date430 = gmdate('Y-m-d H:i:s', $time430); echo $time526 . ' ' . $date526, PHP_EOL; echo $time430 . ' ' . $date430, PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
System default timezone: Europe/Amsterdam -12214196372 -12214109972 1582-12-13 23:40:28 -12214108800 1582-12-14 00:00:00

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.54 ms | 401 KiB | 8 Q