3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = <<<TEXT Павел как дела Дуров1 TEXT; $filter = 'Павел Дуров'; $filter = mb_strtolower($filter); $parts = explode(' ', $filter); $parts = array_map('trim', $parts); $parts = array_map('preg_quote', $parts); $filter = implode('.*', $parts); echo preg_match("~{$filter}~uis", $text);
Output for 5.6.30, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.0rc3
1