3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "http://teamhi.local/index.php?url=aaa"; rtrim($str,'/'); $arr = explode('/',$str); print_r($arr); echo $str;
Output for 4.3.0 - 7.1.0
Array ( [0] => http: [1] => [2] => teamhi.local [3] => index.php?url=aaa ) http://teamhi.local/index.php?url=aaa