3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_export(preg_replace('/[\s]/mu', '_', 'word1'."\xc2\xa0".'word2 word3'));
Output for 5.3.4 - 7.1.0
'word1_word2_word3'
Output for 4.3.0 - 5.3.3
'word1 word2_word3'