3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('MY_CONST', false); function constantExpressionInDefault( int $a = MY_CONST ? 10 : NULL) {} function constantExpressionInDefaultWithRequiredAfter( int $a = MY_CONST ? 10 : NULL, $b) {}

preferences:
24.31 ms | 510 KiB | 6 Q