3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array("0", "0", "F12345 / Q56T76"); if(strlen($array[2]) > 6 && preg_match('/[^a-zA-Z_\-0-9]/', str_replace(" ","",$array[2]))){ $error_message = "HFA Song Code contains characters other than alphanumerics and / at Line Number "; } echo $error_message; ?>

preferences:
57.32 ms | 402 KiB | 5 Q