Skip to content

Instantly share code, notes, and snippets.

@svdmitrij
Created October 27, 2017 12:26
Show Gist options
  • Save svdmitrij/780955c87826e55c8b8784779f621710 to your computer and use it in GitHub Desktop.
Save svdmitrij/780955c87826e55c8b8784779f621710 to your computer and use it in GitHub Desktop.
<?php
$ch = curl_init('https://www.howsmyssl.com/a/check');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = curl_exec($ch);
curl_close($ch);
$json = json_decode($data);
echo "<pre>TLS version: " . $json->tls_version . "</pre>\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment