3v4l.org

run code in 500+ PHP versions simultaneously
<?php $start = http_response_code(); header('HTTP/1.1 404 Not Found'); $afterStatusLine = http_response_code(); header('Location: /elsewhere'); $afterLocation = http_response_code(); header('X-B: 1', true, 418); $afterThirdArgument = http_response_code(); $previous = http_response_code(500); $afterSet = http_response_code(); setcookie('seen', '1'); var_dump($start, $afterStatusLine, $afterLocation, $afterThirdArgument, $previous, $afterSet, headers_list());

preferences:
10.19 ms | 487 KiB | 6 Q