3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $allowed_chars = 'a-z 0-9~%.:_-'; $str = 'renewal'; if ( ! preg_match("/^[".$allowed_chars."]+$/i", $str)){ echo "Unallowed!!!!"; }else{ echo "Looks fine"; }
based on PmWuc
Output for 4.3.0 - 7.1.0
Looks fine