3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(parse_url("http://example.com:80#@google.com/"));
Output for 5.6.28 - 5.6.40, 7.0.13 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(11) "example.com" ["port"]=> int(80) ["fragment"]=> string(12) "@google.com/" }
Output for 5.6.0 - 5.6.27, 7.0.0 - 7.0.12
array(5) { ["scheme"]=> string(4) "http" ["host"]=> string(10) "google.com" ["user"]=> string(11) "example.com" ["pass"]=> string(3) "80#" ["path"]=> string(1) "/" }

preferences:
216.24 ms | 402 KiB | 305 Q