3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $php5 = 'working'; } $b = array( array('test' => 'php5') ); $c = 0; $a = new A(); echo $a->$b[$c]['test'];
Output for git.master, git.master_jit
Warning: Array to string conversion in /in/j4JPR on line 15 Warning: Undefined property: A::$Array in /in/j4JPR on line 15 Warning: Trying to access array offset on value of type null in /in/j4JPR on line 15 Warning: Trying to access array offset on value of type null in /in/j4JPR on line 15
Output for rfc.property-hooks
Warning: Array to string conversion in /in/j4JPR on line 15 Warning: Undefined property: A::$Array in /in/j4JPR on line 15 Warning: Trying to access array offset on null in /in/j4JPR on line 15 Warning: Trying to access array offset on null in /in/j4JPR on line 15

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:
57.18 ms | 401 KiB | 8 Q