3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); header("X-WTFIDONTEVEN: true"); if (headers_sent()) { echo "sent"; } else { echo "not sent"; } echo "\n"; var_dump(headers_list()); ob_end_flush(); echo "\n"; var_dump(headers_list());
Output for 5.2.3 - 7.1.0
not sent array(0) { } array(0) { }
Output for 5.2.2
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.2" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.2.1
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.1" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.2.0
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.0" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.0" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.6
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.6" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.6" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.5
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.5" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.5" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.4
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.4" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.4" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.3
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.3" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.3" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.2
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.2" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.1
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.1" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.0
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.0" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.0" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.5
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.5" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.5" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.4
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.4" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.4" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.3
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.3" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.3" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.2
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.2" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.1
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.1" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.0
sent array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.0" [1]=> string(20) "X-WTFIDONTEVEN: true" } array(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.0" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 4.4.5 - 4.4.9
sent Fatal error: Call to undefined function: headers_list() in /in/sti9m on line 16
Process exited with code 255.
Output for 4.3.2 - 4.4.4
sent Fatal error: Call to undefined function: headers_list() in /in/sti9m on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
sent Fatal error: Call to undefined function: headers_list() in /in/sti9m on line 16