3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1 NM 2951-2 S Sodium: LN 144 mmol/L mmol/L 135-145 F 201402150533 2 NM 2823-3 S Potassium: LN 5.6 mmol/L mmol/L 3.5-5.5 H F 201402150533 3 NM 2075-0 S Chloride: LN 103 mmol/L mmol/L 95-110 F 201402150533'; echo preg_replace('/\b\d{12}\b(?!$)\K\s*/', '<br>', $str);
Output for git.master_jit, git.master, rfc.property-hooks
1 NM 2951-2 S Sodium: LN 144 mmol/L mmol/L 135-145 F 201402150533<br>2 NM 2823-3 S Potassium: LN 5.6 mmol/L mmol/L 3.5-5.5 H F 201402150533<br>3 NM 2075-0 S Chloride: LN 103 mmol/L mmol/L 95-110 F 201402150533

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:
53.68 ms | 406 KiB | 5 Q