3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { const BAR = strlen(...); function f($arg = strtolower(...)) { return $arg; } } ?>
Output for 8.5.0 - 8.5.12
Output for 8.2.31 - 8.2.35, 8.3.0 - 8.3.36, 8.4.1 - 8.4.27
Fatal error: Constant expression contains invalid operations in /in/6lWAd on line 4
Process exited with code 255.

preferences:
17.86 ms | 1162 KiB | 6 Q