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());
Output for master
bool(false) int(404) int(302) int(418) int(418) int(500) array(0) { }

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:
13.16 ms | 1163 KiB | 7 Q