3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seoproducttitle = 'Apple MacBook Air MacBook Air - 13.3 inch - Intel Core i5-8e - MRE82N/A'; echo preg_replace('/(^| )(.{4,}) (.*)\2/', "$1$2 $3", $seoproducttitle) . "\n"; preg_match_all('/(^| )(.{4,}) (.*)\2/', $seoproducttitle, $matches); print_r(array_map(function ($v) { return "'$v'"; }, $matches[2])); $seoproducttitle = 'HP Chromebook 11 G5 EE Chromebook - 11.6 inch - Intel® Intel® Celeron® - 4LT18EA#ABH 4LT18EA#ABH'; echo preg_replace('/(^| )(.{4,}) (.*)\2/', "$1$2 $3", $seoproducttitle) . "\n"; preg_match_all('/(^| )(.{4,}) (.*)\2/', $seoproducttitle, $matches); print_r(array_map(function ($v) { return "'$v'"; }, $matches[2]));
Output for git.master, git.master_jit, rfc.property-hooks
Apple MacBook Air - 13.3 inch - Intel Core i5-8e - MRE82N/A Array ( [0] => 'MacBook Air' ) HP Chromebook 11 G5 EE - 11.6 inch - Intel® Celeron® - 4LT18EA#ABH Array ( [0] => 'Chromebook' [1] => 'Intel®' [2] => '4LT18EA#ABH' )

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