3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump (preg_replace ('~|й~u', 'п', 'р'));
Output for 5.5.27 - 5.5.38, 5.6.11 - 5.6.28, 7.0.0 - 7.1.0
string(6) "прп"
Output for 4.3.0 - 4.3.4, 5.2.9 - 5.5.26, 5.6.0 - 5.6.10, hhvm-3.10.0 - 3.12.0
string(8) "п�п�п"
Output for 5.2.0 - 5.2.8
NULL
Output for 4.3.5 - 5.1.6
string(4) "пр"