3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump (preg_replace ('~|Р№~u', 'Рї', 'СЂ'));
Output for 5.5.27 - 5.5.35, 5.6.11 - 7.1.0
string(16) "РїСРїЂРї"
Output for 4.3.0 - 4.3.4, 5.2.9 - 5.5.26, 5.6.0 - 5.6.10
string(24) "Рї�Рї�Рї�Рї�Рї"
Output for 5.2.0 - 5.2.8
NULL
Output for 4.3.5 - 5.1.6
string(8) "РїСЂ"