3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.4.18
Parse error: syntax error, unexpected ';' in /in/AsEdf on line 22
Process exited with code 255.