3v4l.org

run code in 500+ PHP versions simultaneously
<?php var_dump(parse_url('test:0'));
Output for 7.4.13 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.35, 8.3.0 - 8.3.36, 8.4.1 - 8.4.27, 8.5.0 - 8.5.12, 7.3.26 - 7.3.33
array(2) { ["host"]=> string(4) "test" ["port"]=> int(0) }
Output for 7.4.12
array(1) { ["host"]=> string(4) "test" }
Output for 7.4.0 - 7.4.11, 7.2.0 - 7.2.34, 7.3.0 - 7.3.23
bool(false)

preferences:
24.29 ms | 1171 KiB | 6 Q