3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function run(static $b) {} }
Output for 8.3.5
Fatal error: Cannot use the static modifier on a parameter in /in/cEZik on line 5
Process exited with code 255.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.23, 8.2.0 - 8.2.10
Parse error: syntax error, unexpected token "static", expecting variable in /in/cEZik on line 5
Process exited with code 255.

preferences:
53.52 ms | 762 KiB | 3 Q