3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(is_callable('f')); $a = array('DateTime', 'getLastErrors '); $a();
Output for 7.0.0 - 7.2.0
bool(false) Fatal error: Uncaught Error: Call to undefined method DateTime::getLastErrors () in /in/Md9YJ:4 Stack trace: #0 {main} thrown in /in/Md9YJ on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
bool(false) Fatal error: Call to undefined method DateTime::getLastErrors () in /in/Md9YJ on line 4
Process exited with code 255.
Output for 5.0.0 - 5.3.29
bool(false) Fatal error: Function name must be a string in /in/Md9YJ on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
bool(false) Notice: Array to string conversion in /in/Md9YJ on line 4 Fatal error: Call to undefined function: array() in /in/Md9YJ on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
bool(false) Notice: Array to string conversion in /in/Md9YJ on line 4 Fatal error: Call to undefined function: array() in /in/Md9YJ on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
bool(false) Notice: Array to string conversion in /in/Md9YJ on line 4 Fatal error: Call to undefined function: array() in /in/Md9YJ on line 4