3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://carkva-gazeta.org/римско-католическая-церковь/"; // in case it is https, we don't want to hardcode http $scheme = parse_url($url, PHP_URL_SCHEME); $host = parse_url($url, PHP_URL_HOST); // do not encode the first '/' or the last '/' $encodedPath = strtolower(urlencode(substr(parse_url($url, PHP_URL_PATH), 1, -1))); $encodedUrl = $scheme . "://" . $host . "/" . $encodedPath . "/"; echo $encodedUrl;
Output for git.master, git.master_jit, rfc.property-hooks
http://carkva-gazeta.org/%d1%80%d0%b8%d0%bc%d1%81%d0%ba%d0%be-%d0%ba%d0%b0%d1%82%d0%be%d0%bb%d0%b8%d1%87%d0%b5%d1%81%d0%ba%d0%b0%d1%8f-%d1%86%d0%b5%d1%80%d0%ba%d0%be%d0%b2%d1%8c/

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.82 ms | 401 KiB | 8 Q