3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { a(); $a['a']++; } catch (Throwable $e) { var_dump($e); }
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.24, 8.3.0 - 8.3.12
object(Error)#1 (7) { ["message":protected]=> string(30) "Call to undefined function a()" ["string":"Error":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/CCPRP" ["line":protected]=> int(4) ["trace":"Error":private]=> array(0) { } ["previous":"Error":private]=> NULL }

preferences:
45.03 ms | 407 KiB | 5 Q