Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HHVM -> PHP-FPM fallback test script
if ( false !== strpos( phpversion(), 'hhvm' ) ) {
header( 'HTTP/1.1 502 Bad Gateway', true, 502 );
echo 'Artificial Error';
echo 'PHP Fallback';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment