3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DatabaseException extends RuntimeException { public function __construct(string $message = '', protected int|string $databaseCode = 0, ?Throwable $previous = null) { parent::__construct($message, is_int($databaseCode) ? $databaseCode : 0, $previous); } }
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3

preferences:
49.86 ms | 406 KiB | 5 Q