3v4l.org

run code in 500+ PHP versions simultaneously
<?php $input = '0123456|BHKAHHHHkjkjkjkjk|12345678|JuiKKK121255 9100450|HHkk|12348888|JuiKKK10000000021sdadad255'; $searchfor = '12348888'; $regexp = "/^([^|]+)\|([^|]+)\|" . $searchfor . "\|/m"; $result = preg_match_all($regexp, $input, $matches); print_r($matches);
Output for rfc.property-hooks, git.master, git.master_jit
Array ( [0] => Array ( [0] => 9100450|HHkk|12348888| ) [1] => Array ( [0] => 9100450 ) [2] => Array ( [0] => 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:
48.79 ms | 1382 KiB | 4 Q