3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function makeCatList($param){ $arResult = array(); if(preg_match('/((?:[a-dA-DавсдАВСД]1)|(?:[a-dA-DавсдАВСД][eEеЕ]?)|([tTтТ][rRрР]|[tTтТ][bBбБ]))/', $param["string"], $mCats)){ //unset($mCats[0]); print_r($mCats); return asort($mCats); } else return false; } print_r(makeCatList(array("string"=>"АвeсedeTr")));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => � [1] => � ) 1