Using a double slash ('//') in a url will be regarded as unparseble string and will return NULL
<?php
$result = parse_url('http://api.example.com//resource');
// $result = null
?>
Tested with PHP 8.1.27
Using a double slash ('//') in a url will be regarded as unparseble string and will return NULL
<?php
$result = parse_url('http://api.example.com//resource');
// $result = null
?>
Tested with PHP 8.1.27