3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function inc($matches) { return ++$matches[1]; } $input = preg_replace_callback( "|(\d+)|", "inc", 'JPRSS1010110'); echo $input;
Output for 4.3.0 - 7.3.0rc3
JPRSS1010111