3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $k = 'phone'; $v = '(555) 555-1212)'; $result[$k] = preg_replace('/[^0-9]/', '', $v); echo $result[$k];
Output for 4.3.0 - 7.1.0
5555551212