3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public string $prop { get; } } class Proof implements Test { public string $prop = "success"; } echo (new Proof)->prop;
Output for 8.4.1 - 8.4.14
success
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.27
Parse error: syntax error, unexpected token "{", expecting "," or ";" in /in/4c3Jm on line 4
Process exited with code 255.

preferences:
181.44 ms | 1001 KiB | 7 Q