3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = '#socialmedia within:15mi'; $result = preg_replace("/ within:[0-9]+(mi|km)/", "$1", $q, -1, $count); print_r($result); echo 44; ?>

preferences:
36.18 ms | 402 KiB | 5 Q