3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (PHP_VERSION_ID === 50508) { $string = "miauw\xe1\x8e\xa3\xf0\x90\x8a\xa0"; preg_replace('/./uD', '', $string, -1, $count); var_dump( $string, $count ); }
Output for 5.2.7 - 5.5.7, 5.5.9 - 7.1.0
Output for 5.5.8
string(12) "miauwᎣ𐊠" int(7)
Output for 4.3.0 - 5.2.6
Notice: Use of undefined constant PHP_VERSION_ID - assumed 'PHP_VERSION_ID' in /in/CeU6s on line 3