3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(); echo date('Y-m-d', $date);

preferences:
43.98 ms | 402 KiB | 5 Q