3v4l.org

run code in 300+ PHP versions simultaneously
<?php class HTTP { private static $headers = array(); public static function redirect($newLocation, $temporary = false) { if($temporary) { header("HTTP/1.0 307 Temporary Redirect"); } else { header("HTTP/1.0 301 Moved Permanently"); } header("Location: " . $newLocation); exit(); } public static function objRedirect(URL $url, $temporary = false) { HTTP::redirect(Config::getValue("baseUrl") . $url, $temporary); } public static function disableCaching() { header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); } public static function addHeader($type, $content) { array_push(HTTP::$headers, array("type" => $type, "content" => $content)); } public static function getHeaders() { return HTTP::$headers; } } ?>
Output for git.master, git.master_jit, rfc.property-hooks

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.78 ms | 401 KiB | 8 Q