3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace_callback('/\d+/', function($match){ var_dump($match); if ($match[1]<100) { return sprintf("%'.03d", $match[1]); } else { return $match[1]; } }, 'H_000100');

preferences:
60.62 ms | 402 KiB | 5 Q