3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $examples = array( $class = "am\xC3\xA9lie", $class = "am\x65\xCC\x81lie", ); foreach ($examples as $class) { echo $class ." => "; $class = preg_replace('![^abcdefghijklmnopqrstuvwxyz0-9-_]+!s', '', $class); echo $class ."\n"; }
Output for 4.3.0 - 7.1.0
amélie => amlie amélie => amelie