3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { #[Deprecated] const A='a'; } interface B { #[Deprecated] const B='b'; } var_dump(A::A); var_dump(B::B);
Output for git.master_jit, git.master
Deprecated: Constant A::A is deprecated in /in/rGPoD on line 11 string(1) "a" Deprecated: Constant B::B is deprecated in /in/rGPoD on line 12 string(1) "b"
Output for rfc.property-hooks
string(1) "a" string(1) "b"

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:
41.24 ms | 406 KiB | 5 Q