3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c = "12345g34234j"; print($c . "\n"); $d = preg_replace('/\D/', '', $c); print($c. "\n"); print($d. "\n");
based on a3bb9
Output for 5.5.0 - 7.3.0rc4
12345g34234j 12345g34234j 1234534234