3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = '0123456|BHKAHHHHkjkjkjkjk|12345678|JuiKKK121255 9100450|HHkk|12348888|JuiKKK10000000021sdadad255'; $searchfor = '12348888'; $regexp = "/^([^|]+)\|([^|]+)\|" . $searchfor . "\|/m"; if (preg_match($regexp, $input, $match)) { $val1 = $match[1]; $val2 = $match[2]; echo "$val1\n$val2"; }
Output for git.master, git.master_jit, rfc.property-hooks
9100450 HHkk

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:
45.6 ms | 1337 KiB | 4 Q