3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = "eng%C3%A5%C2%BF%C2"; $name = preg_replace( array( '/[^a-zA-Z0-9]+/', '/_+/', '/^_/', '/_$/' ), array( '_', '_', '', '' ), $name ); echo $name;
Output for 4.3.0 - 7.2.0
eng_C3_A5_C2_BF_C2