3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass {} $c = new MyClass(); $y = new ArrayObject($c); $y['foo'] = 'bar'; // <-- should emit deprecation warning $c->foo2 = 2; var_export($c); echo "\n"; readonly class ReadOnly_ {} $r = new ReadOnly_(); $z = new ArrayObject($r); $z['foo'] = 'bar'; var_export($r);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property MyClass::$foo2 is deprecated in /in/cjfAF on line 7 \MyClass::__set_state(array( 'foo' => 'bar', 'foo2' => 2, )) \ReadOnly_::__set_state(array( 'foo' => 'bar', ))

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