3v4l.org

run code in 300+ PHP versions simultaneously
<?php function handleError( $errno, $errstr, $errfile, $errline ) { if ( E_RECOVERABLE_ERROR === $errno ) { echo $errstr; } } set_error_handler( 'handleError' ); try{ $g = new Generator; $g->whatami = "a highly dubious property"; } catch{ $e->getMessage(); } finally { echo "\nTidying up loose ends ... "; }
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '{', expecting '(' in /in/PSbaH on line 11
Process exited with code 255.

preferences:
196.69 ms | 1399 KiB | 58 Q