3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Test { function method($a = UndefinedClass::UNDEFINED) { } } $rp = new ReflectionParameter(['Test', 'method'], 'a'); try { $val = $rp->getDefaultValue(); } catch (Error $ex) { var_dump($ex); }
based on EEQFI
Output for 5.6.30 - 7.2.9
Fatal error: Class 'UndefinedClass' not found in /in/X1YVX on line 12
Process exited with code 255.