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 fMZVu
Output for 7.0.0 - 7.2.6
bool(true) Fatal error: Uncaught Error: Call to undefined function DateTime() in /in/H6kL3:4 Stack trace: #0 {main} thrown in /in/H6kL3 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/H6kL3: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/H6kL3 on line 4
Process exited with code 255.