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.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
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:
70.62 ms | 407 KiB | 5 Q