3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = date("Y-m-d H:i:s"); echo date_format($date, 'Y-m-d H:i:s'); #output: 2012-03-24 17:45:12 ?>

preferences:
34.77 ms | 402 KiB | 5 Q