3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "B48"; if(preg_match("/[A-Z]/",$string)!=0) { echo "gots a letter"; }

preferences:
37.52 ms | 402 KiB | 5 Q