3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $q = '#socialmedia within:15mi'; $result = preg_replace("/ within:[0-9]+[mi|km]/", "$1", $q, -1, $count); print_r($result); echo 44; ?>
based on ipPiH
Output for 5.3.18 - 7.2.0
#socialmediai44