3v4l.org

run code in 300+ PHP versions simultaneously
<?php function MyArray() { return array('nums'=>array('one','two','three')); } $numArr1 = myArray()['nums']; $numArr2 = array('de'=>array('one','two','three'))['nums']; var_dump($numArr1, $numArr2);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "nums" in /in/jakO3 on line 7 array(3) { [0]=> string(3) "one" [1]=> string(3) "two" [2]=> string(5) "three" } NULL

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