3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \RuntimeException('test'); var_dump($a);
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.26, 8.1.0 - 8.1.13, 8.2rc1 - rc3
object(RuntimeException)#1 (7) { ["message":protected]=> string(4) "test" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/Tqg1s" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> NULL }

preferences:
22.93 ms | 410 KiB | 5 Q