3v4l.org

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