3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = "sdfasdfa"; echo $tmp; echo "\n"; $result = rtrim($tmp, "/"); echo $result;

preferences:
36.48 ms | 402 KiB | 5 Q