3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Without scheme and host'.PHP_EOL; echo PHP_EOL; print_r(parse_url('/s?a=12&b=12.3.3.4:1233', PHP_URL_QUERY)); echo PHP_EOL.PHP_EOL;; echo 'With scheme and host'.PHP_EOL; echo PHP_EOL; print_r(parse_url('http://example.com/s?a=12&b=12.3.3.4:1233', PHP_URL_QUERY));
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.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Without scheme and host a=12&b=12.3.3.4:1233 With scheme and host a=12&b=12.3.3.4:1233

preferences:
111.12 ms | 1521 KiB | 4 Q