3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (PHP_VERSION_ID === 50508) { $string = "miauw\xe1\x8e\xa3"; preg_replace('/./uD', '', $string, -1, $count); var_dump( $string, $count ); }
Output for 5.2.7 - 5.5.7, 5.5.9 - 7.2.0
Output for 5.5.8
string(8) "miauwᎣ" int(6)
Output for 4.3.0 - 5.2.6
Notice: Use of undefined constant PHP_VERSION_ID - assumed 'PHP_VERSION_ID' in /in/ADlac on line 3