3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1234567890-=qwertyui op[]\asdfghjkl;zxcvbnm,./~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?'; $string = preg_replace('/\d|\W|_/', '', $string); echo $string;

preferences:
41.27 ms | 402 KiB | 5 Q