3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $gorod = "Москва"; if( preg_match('/[Мм][Оо][Сс][Кк][Вв][Аа]/', $gorod, $matches, PREG_OFFSET_CAPTURE, 0) ) { $dostavka = 1; } else { $dostavka = 0; } var_dump($dostavka);
Output for 5.6.38
int(0)