3v4l.org

run code in 300+ PHP versions simultaneously
<?php function inc($matches) { return ++$matches[1]; } $input = preg_replace_callback( "|(\d+)|", "inc", 'JPRSS1010110');

preferences:
41.1 ms | 402 KiB | 5 Q