3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar; public function setBar( $value ) { $this->bar = $value; return $this; } public function getBar() { return $this->bar; } } $updates = array( 'series' => new Foo(), 'episode' => new Foo(), ); $updates['series']->setBar( 'foo_bar1' ); $updates['episode']->setBar( 'foo_bar2' ); var_dump( $updates );
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { ["series"]=> object(Foo)#1 (1) { ["bar":"Foo":private]=> string(8) "foo_bar1" } ["episode"]=> object(Foo)#2 (1) { ["bar":"Foo":private]=> string(8) "foo_bar2" } }

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