3v4l.org

run code in 200+ PHP versions simultaneously
<?php $b = preg_match('/\D/', '768486') !== 1; var_dump($b); $b = preg_match('/\D/', '768d486') !== 1; var_dump($b);
Output for 5.6.30 - 7.4.0rc2
bool(true) bool(false)