3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'something/rel/123/something'; var_dump(preg_replace('#(?<=rel/)(\d+)(?=/)#', 'current', $a));
based on MgfTc