@lkraav how about:

```php
return preg_replace( '#^https?:(?=//)#', '', $src );
```