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

preferences:
180.23 ms | 1395 KiB | 54 Q