3v4l.org

run code in 200+ PHP versions simultaneously
<?php function rotUrl($url) { return strtr($url, './-:?=&%# ZQXJKVWPY abcdefghijklmnopqrstuvwxyz123456789ABCDEFGHILMNORSTU', 'ZQXJKVWPY ./-:?=&%# 123456789ABCDEFGHILMNORSTUabcdefghijklmnopqrstuvwxyz'); } assert('http://google.com' === rotUrl(rotUrl('http://google.com')));
Output for 4.3.0 - 7.3.1