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.26, 8.3.0 - 8.3.14, 8.4.1
bool(false)
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.30
array(4) { ["warning_count"]=> int(0) ["warnings"]=> array(0) { } ["error_count"]=> int(0) ["errors"]=> array(0) { } }

preferences:
77.48 ms | 407 KiB | 5 Q