3v4l.org

run code in 200+ PHP versions simultaneously
<?php $search_string = '12312ddddD'; if (preg_match('/^((?i)[0-9a-z])+$/', $search_string)) { echo '(y)'; }
Output for 4.3.0 - 7.2.6
(y)