3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(php_sapi_name(), defined("STDOUT"));
based on haoCP
Output for 5.2.3 - 7.2.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)