3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rc = new ReflectionClass(stdClass::class); $rc->getMethod('');
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14
Fatal error: Uncaught ReflectionException: Method stdClass::() does not exist in /in/cAEln:4 Stack trace: #0 /in/cAEln(4): ReflectionClass->getMethod('') #1 {main} thrown in /in/cAEln on line 4
Process exited with code 255.

preferences:
64.38 ms | 406 KiB | 5 Q