3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $delay = 6000000; if (!(isset($_SESSION['lastsent-post']) && microtime() >= $_SESSION['lastsent-post'] + $delay)) { throw new \Exception("Please wait at least 6 seconds until you can post again"); } else { $_SESSION['lastsent-post'] = microtime(); } } catch (\Exception $Exception) { var_dump($Exception->getMessage()); }

preferences:
49.48 ms | 1317 KiB | 5 Q