3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('//ucommfairchild.unl.edu:8001/', PHP_URL_PATH));
based on Fh746
Output for 5.5.24 - 5.6.28, 7.0.0 - 7.1.0
string(1) "/"
Output for 5.3.3 - 5.4.45, hhvm-3.10.0 - 3.12.0
bool(false)
Output for 5.2.0 - 5.3.2
Warning: parse_url(//ucommfairchild.unl.edu:8001/): Unable to parse URL in /in/Sdtq7 on line 2 bool(false)
Output for 5.1.2 - 5.1.6
Warning: parse_url(//ucommfairchild.unl.edu:8001/): Unable to parse url in /in/Sdtq7 on line 2 bool(false)
Output for 4.3.0 - 5.1.1
Notice: Use of undefined constant PHP_URL_PATH - assumed 'PHP_URL_PATH' in /in/Sdtq7 on line 2 Warning: parse_url() expects exactly 1 parameter, 2 given in /in/Sdtq7 on line 2 NULL