3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(php_sapi_name(), defined("STDOUT"));
based on haoCP
Output for 5.2.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(3) "cli" bool(true)
Output for 4.3.5 - 5.2.2
string(3) "cgi" bool(false)
Output for 4.3.0 - 4.3.4
string(3) "cgi" int(0)