3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_export(parse_url( 'http://google.com#user:pa?ss@localhost:7000' ));
based on Hvs4F
Output for 5.2.12 - 5.2.17, 5.3.2 - 7.2.0
array ( 'scheme' => 'http', 'host' => 'google.com', 'fragment' => 'user:pa?ss@localhost:7000', )
Output for 4.3.2 - 5.2.11, 5.3.0 - 5.3.1
array ( 'scheme' => 'http', 'host' => 'google.com#user', 'query' => 'ss@localhost:7000', )
Output for 4.3.0 - 4.3.1
array ( 'scheme' => 'http', 'host' => 'localhost', 'port' => 7000, 'user' => 'google.com#user', 'pass' => 'pa?ss', )