3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Foo { case BAR; } class MyClass { public $enumProperty = Foo::BAR; public $regularProperty = 'default'; } var_dump(new MyClass); var_dump((new ReflectionClass(MyClass::class))->getDefaultProperties());
Output for git.master_jit, git.master
object(MyClass)#2 (2) { ["enumProperty"]=> enum(Foo::BAR) ["regularProperty"]=> string(7) "default" } array(2) { ["enumProperty"]=> enum(Foo::BAR) ["regularProperty"]=> string(7) "default" }

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:
26.97 ms | 405 KiB | 5 Q