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"; } var_dump(headers_list()); ob_end_flush();
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
not sentarray(0) { }
Output for 5.2.2
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.2.1
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.2.0
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.2.0" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.6
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.6" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.5
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.5" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.4
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.4" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.3
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.3" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.2
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.1
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.1.0
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.1.0" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.5
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.5" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.4
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.4" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.3
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.3" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.2
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.2" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.1
sentarray(2) { [0]=> string(23) "X-Powered-By: PHP/5.0.1" [1]=> string(20) "X-WTFIDONTEVEN: true" }
Output for 5.0.0
sentarray(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/8JEKv on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
sent Fatal error: Call to undefined function: headers_list() in /in/8JEKv on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
sent Fatal error: Call to undefined function: headers_list() in /in/8JEKv on line 15