3v4l.org

run code in 300+ PHP versions simultaneously
<?php try {  echo "先行処理\n";  $error = '例外メッセージ!!';  throw new Exception($error);  // 例外に続く処理は実行されない  echo "後続処理"; } catch (Exception $e) {  echo "例外キャッチ:", $e->getMessage(), "\n"; }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '"先行処理\n"' (T_CONSTANT_ENCAPSED_STRING) in /in/SLie2 on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/SLie2 on line 3
Process exited with code 255.

preferences:
173.31 ms | 1399 KiB | 62 Q