3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'a'; if (!preg_match('/^[a-z0-9].*[a-z0-9]$/i', $string)) { print 'FAIL'; } else { print 'OK'; }

preferences:
40.22 ms | 402 KiB | 5 Q