3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo $querystring = 'abc/\asas///sss/'; echo '<hr>'; //$querystring = preg_match_all('#/#', trim($querystring), $matches); //var_dump($matches); echo $querystring = preg_replace('/[\/]+$/', ' rrr', trim($querystring));
Output for 4.3.0 - 7.1.0
abc/\asas///sss/<hr>abc/\asas///sss rrr