3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'text 1 2 and 3 text', 'text 3 9 25 text', 'text 9 25 48 text', ); foreach ($array as $color) { echo "\n---\n$color"; echo "\n\t" , preg_match('~\b[1-8]\b~', $color, $out) ? "checked (satisfied by {$out[0]})" : 'not found'; echo "\n\tChad says: " , (strpos($color,'1') || strpos($color,'2') || strpos($color,'3') || strpos($color,'4') || strpos($color,'5') || strpos($color,'6') || strpos($color,'7') || strpos($color,'8') ? 'found' : 'not found'); }
Output for git.master, git.master_jit, rfc.property-hooks
--- text 1 2 and 3 text checked (satisfied by 1) Chad says: found --- text 3 9 25 text checked (satisfied by 3) Chad says: found --- text 9 25 48 text not found Chad says: found

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:
18.4 ms | 401 KiB | 8 Q