<?php
if ($_SERVER['SERVER_PROTOCOL'] === 'HTTP/2') {
    echo "HTTP/2 is supported!";
} else {
    echo "HTTP/2 is not supported!";
}
?>