3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { // the way to go is self static private self $property1; // tough luck not possible static private static $property2; } ?>
Output for 8.1.32, 8.2.0 - 8.2.28, 8.3.0 - 8.3.19, 8.4.1 - 8.4.5
Fatal error: Multiple static modifiers are not allowed in /in/C4DLP on line 8
Process exited with code 255.

preferences:
29.51 ms | 713 KiB | 3 Q