3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("base_url=http://$WEB_INTERFACE:$WEB_PORT&selenium2[wd_host]=http://localhost:$WEBDRIVER_PORT/wd/hub"));
Output for 5.3.6 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 array(1) { ["path"]=> string(61) "base_url=http://:&selenium2[wd_host]=http://localhost:/wd/hub" }
Output for 5.0.5 - 5.3.5
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 array(2) { ["host"]=> string(13) "base_url=http" ["path"]=> string(47) "//:&selenium2[wd_host]=http://localhost:/wd/hub" }
Output for 5.0.4
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 array(3) { ["scheme"]=> string(13) "base_url=http" ["host"]=> string(25) ":&selenium2[wd_host]=http" ["path"]=> string(19) "//localhost:/wd/hub" }
Output for 4.3.7 - 4.3.11, 5.0.0 - 5.0.3
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 array(3) { ["scheme"]=> string(13) "base_url=http" ["host"]=> string(25) ":&selenium2[wd_host]=http" ["path"]=> string(19) "//localhost:/wd/hub" }
Output for 4.4.0 - 4.4.9
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 array(2) { ["host"]=> string(13) "base_url=http" ["path"]=> string(47) "//:&selenium2[wd_host]=http://localhost:/wd/hub" }
Output for 4.3.2 - 4.3.6
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 Warning: parse_url(base_url=http://:&selenium2[wd_host]=http://localhost:/wd/hub): Unable to parse url in /in/oihCY on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: WEB_INTERFACE in /in/oihCY on line 3 Notice: Undefined variable: WEB_PORT in /in/oihCY on line 3 Notice: Undefined variable: WEBDRIVER_PORT in /in/oihCY on line 3 Warning: parse_url(base_url=http://:&selenium2[wd_host]=http://localhost:/wd/hub) [http://www.php.net/function.parse-url]: Unable to parse url in /in/oihCY on line 3 bool(false)