3v4l.org

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