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' ); $g = new Generator; $g->whatami = "a highly dubious property"; echo "\nAnd, the code rocks on ... ";

preferences:
38.18 ms | 402 KiB | 5 Q