3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* for ($i = 0; $i < 366; ++$i) { echo $i, "\t", (DateTime::createFromFormat('z', $i))->format('Y-m-d'), "\n"; } */ for ($i = 365; $i < 730; ++$i) { $dt = DateTime::createFromFormat('z', 365 + $i); echo $dt->format('Y-m-d'), "\n"; }
based on h3viG
Output for 7.0.0 - 7.2.0
-99997-01-01 -99997-01-02 -99997-01-03 -99997-01-04 -99997-01-05 -99997-01-06 -99997-01-07 -99997-01-08 -99997-01-09 -99997-01-10 -99997-01-11 -99997-01-12 -99997-01-13 -99997-01-14 -99997-01-15 -99997-01-16 -99997-01-17 -99997-01-18 -99997-01-19 -99997-01-20 -99997-01-21 -99997-01-22 -99997-01-23 -99997-01-24 -99997-01-25 -99997-01-26 -99997-01-27 -99997-01-28 -99997-01-29 -99997-01-30 -99997-01-31 -99997-02-01 -99997-02-02 -99997-02-03 -99997-02-04 -99997-02-05 -99997-02-06 -99997-02-07 -99997-02-08 -99997-02-09 -99997-02-10 -99997-02-11 -99997-02-12 -99997-02-13 -99997-02-14 -99997-02-15 -99997-02-16 -99997-02-17 -99997-02-18 -99997-02-19 -99997-02-20 -99997-02-21 -99997-02-22 -99997-02-23 -99997-02-24 -99997-02-25 -99997-02-26 -99997-02-27 -99997-02-28 -99997-03-01 -99997-03-02 -99997-03-03 -99997-03-04 -99997-03-05 -99997-03-06 -99997-03-07 -99997-03-08 -99997-03-09 -99997-03-10 -99997-03-11 -99997-03-12 -99997-03-13 -99997-03-14 -99997-03-15 -99997-03-16 -99997-03-17 -99997-03-18 -99997-03-19 -99997-03-20 -99997-03-21 -99997-03-22 -99997-03-23 -99997-03-24 -99997-03-25 -99997-03-26 -99997-03-27 -99997-03-28 -99997-03-29 -99997-03-30 -99997-03-31 -99997-04-01 -99997-04-02 -99997-04-03 -99997-04-04 -99997-04-05 -99997-04-06 -99997-04-07 -99997-04-08 -99997-04-09 -99997-04-10 -99997-04-11 -99997-04-12 -99997-04-13 -99997-04-14 -99997-04-15 -99997-04-16 -99997-04-17 -99997-04-18 -99997-04-19 -99997-04-20 -99997-04-21 -99997-04-22 -99997-04-23 -99997-04-24 -99997-04-25 -99997-04-26 -99997-04-27 -99997-04-28 -99997-04-29 -99997-04-30 -99997-05-01 -99997-05-02 -99997-05-03 -99997-05-04 -99997-05-05 -99997-05-06 -99997-05-07 -99997-05-08 -99997-05-09 -99997-05-10 -99997-05-11 -99997-05-12 -99997-05-13 -99997-05-14 -99997-05-15 -99997-05-16 -99997-05-17 -99997-05-18 -99997-05-19 -99997-05-20 -99997-05-21 -99997-05-22 -99997-05-23 -99997-05-24 -99997-05-25 -99997-05-26 -99997-05-27 -99997-05-28 -99997-05-29 -99997-05-30 -99997-05-31 -99997-06-01 -99997-06-02 -99997-06-03 -99997-06-04 -99997-06-05 -99997-06-06 -99997-06-07 -99997-06-08 -99997-06-09 -99997-06-10 -99997-06-11 -99997-06-12 -99997-06-13 -99997-06-14 -99997-06-15 -99997-06-16 -99997-06-17 -99997-06-18 -99997-06-19 -99997-06-20 -99997-06-21 -99997-06-22 -99997-06-23 -99997-06-24 -99997-06-25 -99997-06-26 -99997-06-27 -99997-06-28 -99997-06-29 -99997-06-30 -99997-07-01 -99997-07-02 -99997-07-03 -99997-07-04 -99997-07-05 -99997-07-06 -99997-07-07 -99997-07-08 -99997-07-09 -99997-07-10 -99997-07-11 -99997-07-12 -99997-07-13 -99997-07-14 -99997-07-15 -99997-07-16 -99997-07-17 -99997-07-18 -99997-07-19 -99997-07-20 -99997-07-21 -99997-07-22 -99997-07-23 -99997-07-24 -99997-07-25 -99997-07-26 -99997-07-27 -99997-07-28 -99997-07-29 -99997-07-30 -99997-07-31 -99997-08-01 -99997-08-02 -99997-08-03 -99997-08-04 -99997-08-05 -99997-08-06 -99997-08-07 -99997-08-08 -99997-08-09 -99997-08-10 -99997-08-11 -99997-08-12 -99997-08-13 -99997-08-14 -99997-08-15 -99997-08-16 -99997-08-17 -99997-08-18 -99997-08-19 -99997-08-20 -99997-08-21 -99997-08-22 -99997-08-23 -99997-08-24 -99997-08-25 -99997-08-26 -99997-08-27 -99997-08-28 -99997-08-29 -99997-08-30 -99997-08-31 -99997-09-01 -99997-09-02 -99997-09-03 -99997-09-04 -99997-09-05 -99997-09-06 -99997-09-07 -99997-09-08 -99997-09-09 -99997-09-10 -99997-09-11 -99997-09-12 -99997-09-13 -99997-09-14 -99997-09-15 -99997-09-16 -99997-09-17 -99997-09-18 -99997-09-19 -99997-09-20 -99997-09-21 -99997-09-22 -99997-09-23 -99997-09-24 -99997-09-25 -99997-09-26 -99997-09-27 Fatal error: Uncaught Error: Call to a member function format() on boolean in /in/ah8g6:9 Stack trace: #0 {main} thrown in /in/ah8g6 on line 9
Process exited with code 255.
Output for 5.6.7 - 5.6.28
-99997-01-01 -99997-01-02 -99997-01-03 -99997-01-04 -99997-01-05 -99997-01-06 -99997-01-07 -99997-01-08 -99997-01-09 -99997-01-10 -99997-01-11 -99997-01-12 -99997-01-13 -99997-01-14 -99997-01-15 -99997-01-16 -99997-01-17 -99997-01-18 -99997-01-19 -99997-01-20 -99997-01-21 -99997-01-22 -99997-01-23 -99997-01-24 -99997-01-25 -99997-01-26 -99997-01-27 -99997-01-28 -99997-01-29 -99997-01-30 -99997-01-31 -99997-02-01 -99997-02-02 -99997-02-03 -99997-02-04 -99997-02-05 -99997-02-06 -99997-02-07 -99997-02-08 -99997-02-09 -99997-02-10 -99997-02-11 -99997-02-12 -99997-02-13 -99997-02-14 -99997-02-15 -99997-02-16 -99997-02-17 -99997-02-18 -99997-02-19 -99997-02-20 -99997-02-21 -99997-02-22 -99997-02-23 -99997-02-24 -99997-02-25 -99997-02-26 -99997-02-27 -99997-02-28 -99997-03-01 -99997-03-02 -99997-03-03 -99997-03-04 -99997-03-05 -99997-03-06 -99997-03-07 -99997-03-08 -99997-03-09 -99997-03-10 -99997-03-11 -99997-03-12 -99997-03-13 -99997-03-14 -99997-03-15 -99997-03-16 -99997-03-17 -99997-03-18 -99997-03-19 -99997-03-20 -99997-03-21 -99997-03-22 -99997-03-23 -99997-03-24 -99997-03-25 -99997-03-26 -99997-03-27 -99997-03-28 -99997-03-29 -99997-03-30 -99997-03-31 -99997-04-01 -99997-04-02 -99997-04-03 -99997-04-04 -99997-04-05 -99997-04-06 -99997-04-07 -99997-04-08 -99997-04-09 -99997-04-10 -99997-04-11 -99997-04-12 -99997-04-13 -99997-04-14 -99997-04-15 -99997-04-16 -99997-04-17 -99997-04-18 -99997-04-19 -99997-04-20 -99997-04-21 -99997-04-22 -99997-04-23 -99997-04-24 -99997-04-25 -99997-04-26 -99997-04-27 -99997-04-28 -99997-04-29 -99997-04-30 -99997-05-01 -99997-05-02 -99997-05-03 -99997-05-04 -99997-05-05 -99997-05-06 -99997-05-07 -99997-05-08 -99997-05-09 -99997-05-10 -99997-05-11 -99997-05-12 -99997-05-13 -99997-05-14 -99997-05-15 -99997-05-16 -99997-05-17 -99997-05-18 -99997-05-19 -99997-05-20 -99997-05-21 -99997-05-22 -99997-05-23 -99997-05-24 -99997-05-25 -99997-05-26 -99997-05-27 -99997-05-28 -99997-05-29 -99997-05-30 -99997-05-31 -99997-06-01 -99997-06-02 -99997-06-03 -99997-06-04 -99997-06-05 -99997-06-06 -99997-06-07 -99997-06-08 -99997-06-09 -99997-06-10 -99997-06-11 -99997-06-12 -99997-06-13 -99997-06-14 -99997-06-15 -99997-06-16 -99997-06-17 -99997-06-18 -99997-06-19 -99997-06-20 -99997-06-21 -99997-06-22 -99997-06-23 -99997-06-24 -99997-06-25 -99997-06-26 -99997-06-27 -99997-06-28 -99997-06-29 -99997-06-30 -99997-07-01 -99997-07-02 -99997-07-03 -99997-07-04 -99997-07-05 -99997-07-06 -99997-07-07 -99997-07-08 -99997-07-09 -99997-07-10 -99997-07-11 -99997-07-12 -99997-07-13 -99997-07-14 -99997-07-15 -99997-07-16 -99997-07-17 -99997-07-18 -99997-07-19 -99997-07-20 -99997-07-21 -99997-07-22 -99997-07-23 -99997-07-24 -99997-07-25 -99997-07-26 -99997-07-27 -99997-07-28 -99997-07-29 -99997-07-30 -99997-07-31 -99997-08-01 -99997-08-02 -99997-08-03 -99997-08-04 -99997-08-05 -99997-08-06 -99997-08-07 -99997-08-08 -99997-08-09 -99997-08-10 -99997-08-11 -99997-08-12 -99997-08-13 -99997-08-14 -99997-08-15 -99997-08-16 -99997-08-17 -99997-08-18 -99997-08-19 -99997-08-20 -99997-08-21 -99997-08-22 -99997-08-23 -99997-08-24 -99997-08-25 -99997-08-26 -99997-08-27 -99997-08-28 -99997-08-29 -99997-08-30 -99997-08-31 -99997-09-01 -99997-09-02 -99997-09-03 -99997-09-04 -99997-09-05 -99997-09-06 -99997-09-07 -99997-09-08 -99997-09-09 -99997-09-10 -99997-09-11 -99997-09-12 -99997-09-13 -99997-09-14 -99997-09-15 -99997-09-16 -99997-09-17 -99997-09-18 -99997-09-19 -99997-09-20 -99997-09-21 -99997-09-22 -99997-09-23 -99997-09-24 -99997-09-25 -99997-09-26 -99997-09-27 Fatal error: Call to a member function format() on boolean in /in/ah8g6 on line 9
Process exited with code 255.
Output for 5.3.18 - 5.5.35
-99997-01-01 -99997-01-02 -99997-01-03 -99997-01-04 -99997-01-05 -99997-01-06 -99997-01-07 -99997-01-08 -99997-01-09 -99997-01-10 -99997-01-11 -99997-01-12 -99997-01-13 -99997-01-14 -99997-01-15 -99997-01-16 -99997-01-17 -99997-01-18 -99997-01-19 -99997-01-20 -99997-01-21 -99997-01-22 -99997-01-23 -99997-01-24 -99997-01-25 -99997-01-26 -99997-01-27 -99997-01-28 -99997-01-29 -99997-01-30 -99997-01-31 -99997-02-01 -99997-02-02 -99997-02-03 -99997-02-04 -99997-02-05 -99997-02-06 -99997-02-07 -99997-02-08 -99997-02-09 -99997-02-10 -99997-02-11 -99997-02-12 -99997-02-13 -99997-02-14 -99997-02-15 -99997-02-16 -99997-02-17 -99997-02-18 -99997-02-19 -99997-02-20 -99997-02-21 -99997-02-22 -99997-02-23 -99997-02-24 -99997-02-25 -99997-02-26 -99997-02-27 -99997-02-28 -99997-03-01 -99997-03-02 -99997-03-03 -99997-03-04 -99997-03-05 -99997-03-06 -99997-03-07 -99997-03-08 -99997-03-09 -99997-03-10 -99997-03-11 -99997-03-12 -99997-03-13 -99997-03-14 -99997-03-15 -99997-03-16 -99997-03-17 -99997-03-18 -99997-03-19 -99997-03-20 -99997-03-21 -99997-03-22 -99997-03-23 -99997-03-24 -99997-03-25 -99997-03-26 -99997-03-27 -99997-03-28 -99997-03-29 -99997-03-30 -99997-03-31 -99997-04-01 -99997-04-02 -99997-04-03 -99997-04-04 -99997-04-05 -99997-04-06 -99997-04-07 -99997-04-08 -99997-04-09 -99997-04-10 -99997-04-11 -99997-04-12 -99997-04-13 -99997-04-14 -99997-04-15 -99997-04-16 -99997-04-17 -99997-04-18 -99997-04-19 -99997-04-20 -99997-04-21 -99997-04-22 -99997-04-23 -99997-04-24 -99997-04-25 -99997-04-26 -99997-04-27 -99997-04-28 -99997-04-29 -99997-04-30 -99997-05-01 -99997-05-02 -99997-05-03 -99997-05-04 -99997-05-05 -99997-05-06 -99997-05-07 -99997-05-08 -99997-05-09 -99997-05-10 -99997-05-11 -99997-05-12 -99997-05-13 -99997-05-14 -99997-05-15 -99997-05-16 -99997-05-17 -99997-05-18 -99997-05-19 -99997-05-20 -99997-05-21 -99997-05-22 -99997-05-23 -99997-05-24 -99997-05-25 -99997-05-26 -99997-05-27 -99997-05-28 -99997-05-29 -99997-05-30 -99997-05-31 -99997-06-01 -99997-06-02 -99997-06-03 -99997-06-04 -99997-06-05 -99997-06-06 -99997-06-07 -99997-06-08 -99997-06-09 -99997-06-10 -99997-06-11 -99997-06-12 -99997-06-13 -99997-06-14 -99997-06-15 -99997-06-16 -99997-06-17 -99997-06-18 -99997-06-19 -99997-06-20 -99997-06-21 -99997-06-22 -99997-06-23 -99997-06-24 -99997-06-25 -99997-06-26 -99997-06-27 -99997-06-28 -99997-06-29 -99997-06-30 -99997-07-01 -99997-07-02 -99997-07-03 -99997-07-04 -99997-07-05 -99997-07-06 -99997-07-07 -99997-07-08 -99997-07-09 -99997-07-10 -99997-07-11 -99997-07-12 -99997-07-13 -99997-07-14 -99997-07-15 -99997-07-16 -99997-07-17 -99997-07-18 -99997-07-19 -99997-07-20 -99997-07-21 -99997-07-22 -99997-07-23 -99997-07-24 -99997-07-25 -99997-07-26 -99997-07-27 -99997-07-28 -99997-07-29 -99997-07-30 -99997-07-31 -99997-08-01 -99997-08-02 -99997-08-03 -99997-08-04 -99997-08-05 -99997-08-06 -99997-08-07 -99997-08-08 -99997-08-09 -99997-08-10 -99997-08-11 -99997-08-12 -99997-08-13 -99997-08-14 -99997-08-15 -99997-08-16 -99997-08-17 -99997-08-18 -99997-08-19 -99997-08-20 -99997-08-21 -99997-08-22 -99997-08-23 -99997-08-24 -99997-08-25 -99997-08-26 -99997-08-27 -99997-08-28 -99997-08-29 -99997-08-30 -99997-08-31 -99997-09-01 -99997-09-02 -99997-09-03 -99997-09-04 -99997-09-05 -99997-09-06 -99997-09-07 -99997-09-08 -99997-09-09 -99997-09-10 -99997-09-11 -99997-09-12 -99997-09-13 -99997-09-14 -99997-09-15 -99997-09-16 -99997-09-17 -99997-09-18 -99997-09-19 -99997-09-20 -99997-09-21 -99997-09-22 -99997-09-23 -99997-09-24 -99997-09-25 -99997-09-26 -99997-09-27 Fatal error: Call to a member function format() on a non-object in /in/ah8g6 on line 9
Process exited with code 255.