Skip to content

Instantly share code, notes, and snippets.

@killpond
Created March 13, 2018 14:07
Show Gist options
  • Save killpond/9ee454ccf67a19268608cf441f0bb185 to your computer and use it in GitHub Desktop.
Save killpond/9ee454ccf67a19268608cf441f0bb185 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 $json->tls_version;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment