3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(parse_url("http://localhost/2 - English title 2 (fi) здесь.mp3?download=1")); echo ini_get("default_charset"); echo mb_internal_encoding(); echo locale_get_default();
based on 5hXSH
Output for 5.6.8 - 5.6.12, 5.6.16 - 5.6.19, 5.6.21 - 7.0.4, 7.0.6 - 7.2.0
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "localhost" ["path"]=> string(41) "/2 - English title 2 (fi) здесь.mp3" ["query"]=> string(10) "download=1" } UTF-8UTF-8en_US_POSIX
Output for 7.0.5
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "localhost" ["path"]=> string(41) "/2 - English title 2 (fi) здесь.mp3" ["query"]=> string(10) "download=1" } UTF-8UTF-8 Fatal error: Uncaught Error: Call to undefined function locale_get_default() in /in/gmaIc:6 Stack trace: #0 {main} thrown in /in/gmaIc on line 6
Process exited with code 255.
Output for 5.6.13 - 5.6.15, 5.6.20
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "localhost" ["path"]=> string(41) "/2 - English title 2 (fi) здесь.mp3" ["query"]=> string(10) "download=1" } UTF-8UTF-8 Fatal error: Call to undefined function locale_get_default() in /in/gmaIc on line 6
Process exited with code 255.
Output for 5.4.11 - 5.5.28, 5.5.31 - 5.5.33, 5.5.35
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "localhost" ["path"]=> string(41) "/2 - English title 2 (fi) здесь.mp3" ["query"]=> string(10) "download=1" } ISO-8859-1en_US_POSIX
Output for 5.3.21 - 5.3.29, 5.5.29 - 5.5.30, 5.5.34
array(4) { ["scheme"]=> string(4) "http" ["host"]=> string(9) "localhost" ["path"]=> string(41) "/2 - English title 2 (fi) здесь.mp3" ["query"]=> string(10) "download=1" } ISO-8859-1 Fatal error: Call to undefined function locale_get_default() in /in/gmaIc on line 6
Process exited with code 255.