3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( filter_var('http://http://www.google.com'), parse_url('http://http://www.google.com') );
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.30, 8.0.0 - 8.0.22, 8.1.0 - 8.1.9
string(28) "http://http://www.google.com" array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(4) "http" ["path"]=> string(16) "//www.google.com" }

preferences:
27.39 ms | 410 KiB | 5 Q