3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try { eval(file_get_contents(__FILE__)); } catch () { die('This script is flawed!'); }
Output for 5.4.0 - 5.4.16
Parse error: syntax error, unexpected ')', expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /in/0KqLe on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected ')', expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR in /in/0KqLe on line 4
Process exited with code 255.