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));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
151.4 ms | 2143 KiB | 10 Q