3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 4)); var_dump(date('Y-m-d o-W-N', $time - 86400 * 5));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-53-4" string(19) "-0001-12-30 -1-53-3" string(19) "-0001-12-29 -1-53-2"
Output for Arrow functions
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-53-4" string(19) "-0001-12-30 -1-53-3" string(19) "-0001-12-29 -1-53-2"
Output for Object typehint
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-53-4" string(19) "-0001-12-30 -1-53-3" string(19) "-0001-12-29 -1-53-2"
Output for Array change keys
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-53-4" string(19) "-0001-12-30 -1-53-3" string(19) "-0001-12-29 -1-53-2"
Output for Lexical anon
string(18) "0000-01-02 -1-52-7" string(18) "0000-01-01 -1-52-6" string(19) "-0001-12-31 -1-53-4" string(19) "-0001-12-30 -1-53-3" string(19) "-0001-12-29 -1-53-2"

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