3v4l.org

run code in 300+ PHP versions simultaneously
<?php class t0 { var $i = 0; public function __get($name) { return $this->name = ++self::$i . ' hooys'; } } class t1 extends t0 {} class t2 extends t0 {} class t3 extends t0 {} for ($i = 0; $i < 10000; ++$i) { $className = 't' . $i % 4; $tt = new $className(); $tt->$i . ''; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Access to undeclared static property t0::$i in /in/YGpQo:7 Stack trace: #0 /in/YGpQo(18): t0->__get('0') #1 {main} thrown in /in/YGpQo on line 7
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:
42.49 ms | 401 KiB | 8 Q