3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = 'http://www.qq.com?a=1&b=2'; $redArr = parse_url($url); print_r($redArr);
Output for 4.3.2 - 7.2.0
Array ( [scheme] => http [host] => www.qq.com [query] => a=1&b=2 )
Output for 4.3.0 - 4.3.1
Array ( [scheme] => http [host] => www.qq.com?a=1&b=2 )