3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('fb://page/?id=309669250171')); var_dump(parse_url('fb://page/309669250171?referrer=app_link'));
based on MQrcW
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
array(4) { ["scheme"]=> string(2) "fb" ["host"]=> string(4) "page" ["path"]=> string(1) "/" ["query"]=> string(15) "id=309669250171" } array(4) { ["scheme"]=> string(2) "fb" ["host"]=> string(4) "page" ["path"]=> string(13) "/309669250171" ["query"]=> string(17) "referrer=app_link" }