3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $value='130'; var_dump(ctype_digit($value)); var_dump(\DateTime($value)); $value=00000; var_dump(ctype_digit($value)); var_dump(\DateTime($value));
based on H6kL3
Output for 7.0.0 - 7.2.11
bool(true) Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/nHf6Y:4 Stack trace: #0 {main} thrown in /in/nHf6Y on line 4
Process exited with code 255.
Output for hhvm-3.15.4
bool(true) Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/nHf6Y:4 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
bool(true) Fatal error: Call to undefined function DateTime() in /in/nHf6Y on line 4
Process exited with code 255.