3v4l.org

run code in 200+ PHP versions simultaneously
<?php echo (new DateTime())->format('Y-m-d-H');
based on aCbLV
Output for 7.2.0 - 7.4.1
2020-01-21-16