3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('UTC'); $time=-62167046400; // 0000-01-03 0-01-1 var_dump(date('Y-m-d o-W-N', $time - 86400)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 2)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 3), 'The issue appeared here. Expected: 0000-01-02 -1-52-5'); var_dump(date('Y-m-d o-W-N', $time - 86400 * 4)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 5));
Output for git.master_jit, git.master, rfc.property-hooks
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-52-5" string(53) "The issue appeared here. Expected: 0000-01-02 -1-52-5" string(19) "-0001-12-30 -1-52-4" string(19) "-0001-12-29 -1-52-3"

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