3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = parse_url('http://www.example.com/путин/'); $url['path'] = str_replace('/','',$url['path']); $url['path'] = urlencode($url['path']); var_dump($url); echo $url['scheme'] . '://' . $url['host'] . '/' . $url['path'];
based on YCtHV
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
array(3) { ["scheme"]=> string(4) "http" ["host"]=> string(15) "www.example.com" ["path"]=> string(30) "%D0%BF%D1%83%D1%82%D0%B8%D0%BD" } http://www.example.com/%D0%BF%D1%83%D1%82%D0%B8%D0%BD