3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($strings as $string) { if(preg_match('/^NPWP:?\s*(\d+)/', $string, $matches)) { echo $matches[1]; } }

preferences:
50.72 ms | 402 KiB | 5 Q