- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected 'e' (T_STRING), expecting variable (T_VARIABLE) in /in/tSZ6h on line 7
Process exited with code 255.
<?php
try
{
if(PHP_MAJOR_VERSION<7) throw new Exception('PHP 7 required!');
}
catch(Exception e)
{
echo $e->getMessage();
exit();
}
echo "Hi!";