3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT A number 555555555 then some more text and a quoted number "(123)4567890" and then 1 2 3 4 6 (54) 3 -2 and forward slashed /+--------0/ versus +--------0 then something more realistic '234 588 9191' no more text. This is not closed by the same character on both ends: "+012345678901/ which of course is a _necessary_ check? TEXT; echo preg_replace('~([\'"/])\+?[\d()\s-]{8,25}\d{1,2}\1(*SKIP)(*FAIL)|((?!\s)\+?[\d()\s-]{8,25}\d{1,2})~', "<strong>$2</strong>", $text);
Output for git.master, git.master_jit, rfc.property-hooks
A number <strong>555555555</strong> then some more text and a quoted number "(123)4567890" and then <strong>1 2 3 4 6 (54) 3 -2</strong> and forward slashed /+--------0/ versus <strong>+--------0</strong> then something more realistic '234 588 9191' no more text. This is not closed by the same character on both ends: "<strong>+012345678901</strong>/ which of course is a _necessary_ check?

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:
73.5 ms | 1548 KiB | 4 Q