3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ( ! defined('PHP_EOL')) { define('PHP_EOL', "\n"); } $now = time(); $plusThreeHours = gmdate('M-j-Y-H-i', strtotime('+3 hours', $now)); echo 'Now: ', gmdate('M-j-Y-H-i', $now), PHP_EOL; echo 'Plus 3 Hours: ', $plusThreeHours, PHP_EOL;

preferences:
30.75 ms | 402 KiB | 5 Q