3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php header('Set-Cookie: Bar'); header('Set-Cookie: Baz'); var_dump(headers_list());
Output for 5.2.3 - 7.1.0
array(0) { }
Output for 5.2.2
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.2" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.2.1
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.1" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.2.0
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.0" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.6
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.6" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.5
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.5" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.4
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.4" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.3
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.3" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.2
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.2" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.1
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.1" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.1.0
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.0" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.5
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.5" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.4
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.4" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.3
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.3" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.2
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.2" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.1
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.1" [1]=> string(15) "Set-Cookie: Baz" }
Output for 5.0.0
array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.0" [1]=> string(15) "Set-Cookie: Baz" }
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: headers_list() in <b>/in/EqAAf</b> on line <b>6</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: headers_list() in <b>/in/EqAAf</b> on line <b>6</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: headers_list() in <b>/in/EqAAf</b> on line <b>6</b><br />