3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (new DateTime('10-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('0010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('00010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('000010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('0000010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('00000010-01-01'))->format('Y-m-d'), "\n"; echo (new DateTime('000000010-01-01'))->format('Y-m-d');

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
152 ms | 2222 KiB | 10 Q