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.1.34, 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 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.12 ms | 1151 KiB | 6 Q