3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $digits = '1234567890'; $alnum = '123test'; var_dump(strspn($digits, $digits) === strlen($digits)); var_dump(strspn($alnum, $digits) === strlen($alnum));
based on 1kqTq
Output for 4.3.0 - 7.2.0
bool(true) bool(false)