3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '1234567890-=qwertyui op[]\asdfghjkl;zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?'; $string = preg_replace('/\d|\W|_/', '', $string); echo $string;
based on HKGr1
Output for 4.3.0 - 7.1.0
qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM