3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'Calais (62100)'; $str = preg_replace("#^(.*)\([0-9]*\)$#", "$1", $str); echo $str;
Output for 4.3.0 - 7.2.0
Calais