3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = new __PHP_Incomplete_Class; $r = new ReflectionProperty($a, 'x'); $r->setValue(null, 3); //$a->x = 2; var_dump($a); var_dump(unserialize(serialize($a)));
Output for git.master_jit, git.master
Fatal error: Uncaught ReflectionException: Property __PHP_Incomplete_Class::$x does not exist in /in/3EOS1:4 Stack trace: #0 /in/3EOS1(4): ReflectionProperty->__construct(Object(__PHP_Incomplete_Class), 'x') #1 {main} thrown in /in/3EOS1 on line 4
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:
40.8 ms | 716 KiB | 4 Q