3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public public function test() {} }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Multiple access type modifiers are not allowed in /in/6cs0i on line 4
Process exited with code 255.

preferences:
182.7 ms | 1400 KiB | 64 Q