3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = (object) "hello1"; $obj1->gg = 'world1'; $obj2 = (object) "hello2"; $obj2->gg = 'world1'; $obj3 = (object) "hello3"; $obj3->gg = 'world3'; $arr = array(); $arr[0] = $obj1; $arr[1] = $obj2; $arr[2] = $obj3; $arr = array_map("unserialize", array_unique(array_map("serialize", (array) $arr))); print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => stdClass Object ( [scalar] => hello1 [gg] => world1 ) [1] => stdClass Object ( [scalar] => hello2 [gg] => world1 ) [2] => stdClass Object ( [scalar] => hello3 [gg] => world3 ) )

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.15 ms | 402 KiB | 8 Q