3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(PHP_OUTPUT_HANDLER_CONT); var_dump(PHP_OUTPUT_HANDLER_WRITE); var_dump(PHP_OUTPUT_HANDLER_START); var_dump(PHP_OUTPUT_HANDLER_CLEAN); var_dump(PHP_OUTPUT_HANDLER_FLUSH); var_dump(PHP_OUTPUT_HANDLER_END); var_dump(PHP_OUTPUT_HANDLER_FINAL);
Output for 5.4.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
int(0) int(0) int(1) int(2) int(4) int(8) int(8)
Output for 4.3.0 - 5.3.29
int(2) Notice: Use of undefined constant PHP_OUTPUT_HANDLER_WRITE - assumed 'PHP_OUTPUT_HANDLER_WRITE' in /in/vbWHE on line 4 string(24) "PHP_OUTPUT_HANDLER_WRITE" int(1) Notice: Use of undefined constant PHP_OUTPUT_HANDLER_CLEAN - assumed 'PHP_OUTPUT_HANDLER_CLEAN' in /in/vbWHE on line 7 string(24) "PHP_OUTPUT_HANDLER_CLEAN" Notice: Use of undefined constant PHP_OUTPUT_HANDLER_FLUSH - assumed 'PHP_OUTPUT_HANDLER_FLUSH' in /in/vbWHE on line 8 string(24) "PHP_OUTPUT_HANDLER_FLUSH" int(4) Notice: Use of undefined constant PHP_OUTPUT_HANDLER_FINAL - assumed 'PHP_OUTPUT_HANDLER_FINAL' in /in/vbWHE on line 11 string(24) "PHP_OUTPUT_HANDLER_FINAL"