3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime(strtotime('Tuesday')); echo $date->format('YY-mm-dd');

preferences:
49.5 ms | 402 KiB | 5 Q