3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(ctype_digit ( 16516 )); var_dump(ctype_digit ( '232' )); var_dump(ctype_digit ( '232.00' )); var_dump(ctype_digit ( '00.232' )); var_dump(ctype_digit ( '232.34423') ); var_dump(ctype_digit ( '232.32' )); ?>
Output for 4.3.10 - 4.4.9, 5.0.3 - 7.1.0
bool(true) bool(true) bool(false) bool(false) bool(false) bool(false)
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.2
bool(false) bool(true) bool(false) bool(false) bool(false) bool(false)