3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPUnit_Util_ErrorHandler { public static function handleError($errno, $errstr, $errfile, $errline) { throw new Exception; } } set_error_handler( array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT ); $dom = new DOMDocument; $dom->saveXML('foo');

preferences:
34.28 ms | 402 KiB | 5 Q