3v4l.org

run code in 300+ PHP versions simultaneously
<?php use \{stdClass, Exception}; new Exception(strtolower('ABC'));
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.22, 7.0.0 - 7.0.7
Parse error: syntax error, unexpected '{', expecting identifier (T_STRING) in /in/s2chd on line 2
Process exited with code 255.

preferences:
227.32 ms | 1395 KiB | 74 Q