3v4l.org

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