3v4l.org

run code in 300+ PHP versions simultaneously
<?php version_compare(PHP_VERSION, '5.3.0', '>=') or die('SKIP'); $dt = new DateTime('2014-12-02', new DateTimeZone('UTC')); $dt->modify('first day of this month'); echo $dt->format('r');

preferences:
32.15 ms | 404 KiB | 5 Q