3v4l.org

run code in 300+ PHP versions simultaneously
<?php DateTime::createFromFormat('!Y-m-d', '2020-01-01'); var_dump(DateTime::getLastErrors());
Output for 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
bool(false)
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28
array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } }

preferences:
117.81 ms | 402 KiB | 123 Q