3v4l.org

run code in 300+ PHP versions simultaneously
<?php function prepare($pattern) { $replacements = [ 'a' => '[aáàäâ]', 'c' => '[cč]', 'e' => '[eéèëê]', 'i' => '[ií]', 'y' => '[yý]' ]; return str_replace(array_keys($replacements), $replacements, $pattern); } function highlight($search, $subject, $htmlTag = 'mark') { $pattern = '/' . preg_replace('/\s+/', '|', prepare(preg_quote(trim($search)))) . '/u'; return preg_replace($pattern, "<$htmlTag>$0</$htmlTag>", $subject); } echo highlight('prijimac HD815', 'Satelitný prijímač, Amiko HD8155');
Output for git.master, git.master_jit, rfc.property-hooks
Satelitný <mark>prijímač</mark>, Amiko <mark>HD815</mark>5

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:
29.28 ms | 405 KiB | 5 Q