3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url('scheme://user@name:password@host'));
Output for 4.4.5 - 4.4.9, 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { ["scheme"]=> string(6) "scheme" ["host"]=> string(4) "host" ["user"]=> string(9) "user@name" ["pass"]=> string(8) "password" }
Output for 4.3.2 - 4.4.4, 5.0.0 - 5.1.6
Warning: parse_url(scheme://user@name:password@host): Unable to parse url in /in/LkUfs on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: parse_url(scheme://user@name:password@host) [http://www.php.net/function.parse-url]: Unable to parse url in /in/LkUfs on line 3 bool(false)