3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php use \a\{stdClass, Exception}; new Exception(strtolower('ABC'));
based on s2chd
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Class 'a\Exception' not found in /in/WvCWd:4 Stack trace: #0 {main} thrown in /in/WvCWd on line 4
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) in /in/WvCWd on line 2
Process exited with code 255.