3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Named { // Objects implementing this interface must have a readable // $fullName property. That could be satisfied with a traditional // property or a property with a "get" hook. public string $fullName { get; } } interface Named1 { // Objects implementing this interface must have a readable // $fullName property. That could be satisfied with a traditional // property or a property with a "get" hook. protected string $fullName { get; } } interface Named2 { // Objects implementing this interface must have a readable // $fullName property. That could be satisfied with a traditional // property or a property with a "get" hook. private string $fullName { get; } }
Output for git.master, git.master_jit
Fatal error: Property in interface cannot be protected or private in /in/TBaXF on line 16
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
137.58 ms | 997 KiB | 7 Q