3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); // PHP 8.1+: set_exception_handler(error_log(...)); set_exception_handler('error_log'); // PHP 7~: try a ParseError: eval('$error here;'); eval('throw new RuntimeException("here");');

preferences:
47.53 ms | 2746 KiB | 5 Q