3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "regex!"; echo preg_replace('/(\d+)-?(\d)/', '${1}${1}', "16656400-k");
Output for 4.3.0 - 7.1.7
regex!16656401665640-k