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"; } finalize ( $a->free(); ) echo "done\n";
Output for 5.3.0 - 5.4.18
Parse error: syntax error, unexpected ';' in /in/bsAIg on line 22
Process exited with code 255.