3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $a; public $b; public $c; } $o1 = new TestClass; $o1->a = 'abc'; $o1->b = ['a', 'b', 'c']; $o1->c = 123456; $o2 = new TestClass; $o2->a = 'abc'; $o2->b = ['a', 'b', 'c']; $o2->c = 123456; var_dump([spl_object_hash($o1), spl_object_hash($o2)]); var_dump($o1 == $o2); var_dump($o1 === $o2);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(32) "00000000000000010000000000000000" [1]=> string(32) "00000000000000020000000000000000" } bool(true) bool(false)

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