3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = [ "NPWP:016386112436000 JALAN ELANG DESA SUKAHATI CITEUREUP BOGOR 16810, INDONESIA TEL:+62(21)8765105", "NPWP 314633389431000 DELTA SILICON INDUSTRIALL PARK 3 JL PINANG F 16/25A, CICAU CIKARANG PUSAT, CITY: BEKASI, JB 17550 INDONESIA" ]; foreach ($strings as $string) { if(preg_match('/^NPWP:?\s*(\d+)/', $string, $matches)) { echo $matches[1] . PHP_EOL; } }
Output for git.master_jit, git.master, rfc.property-hooks
016386112436000 314633389431000

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.39 ms | 405 KiB | 5 Q