3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = 'https://www.spin.com'; $a = parse_url($url); var_dump($a);
based on G3YkK
Output for 4.3.0 - 7.1.0
array(2) { ["scheme"]=> string(5) "https" ["host"]=> string(12) "www.spin.com" }