3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { function __construct() { echo "create\n"; } function free() { echo "free\n"; } } try { $a = new a; throw new Exception (''); } catch (Exception $e) { echo "exception\n"; } finally ( $a->free(); ) echo "done\n";
Output for 5.5.0 - 5.5.2
Parse error: syntax error, unexpected '(', expecting '{' in /in/AsEdf on line 21
Process exited with code 255.
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.18
Parse error: syntax error, unexpected ';' in /in/AsEdf on line 22
Process exited with code 255.

preferences:
186.56 ms | 1395 KiB | 57 Q