3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public $chciDoArray1 = '1'; public $chciDoArray2 = '2'; public $chciDoArray3 = '3'; public $neChciDoArray = 'oops'; public function ohMyHandsWillFallOff() { return [ $this->chciDoArray1, $this->chciDoArray2, $this->chciDoArray3, ]; } } $a = new test(); var_dump((array)$a, json_decode(json_encode($a), true));
Output for git.master, git.master_jit, rfc.property-hooks
array(4) { ["chciDoArray1"]=> string(1) "1" ["chciDoArray2"]=> string(1) "2" ["chciDoArray3"]=> string(1) "3" ["neChciDoArray"]=> string(4) "oops" } array(4) { ["chciDoArray1"]=> string(1) "1" ["chciDoArray2"]=> string(1) "2" ["chciDoArray3"]=> string(1) "3" ["neChciDoArray"]=> string(4) "oops" }

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:
58.87 ms | 402 KiB | 8 Q