3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { public $a; public $b; public $c; public $d; } $inner1 = new TestClass; $inner1->a = 1000; $inner2 = new TestClass; $inner2->a = 1000; $inner3 = new TestClass; $inner3->a = 1001; $o1 = new TestClass; $o1->a = 'abc'; $o1->b = ['a', 'b', 'c']; $o1->c = 123456; $o1->d = $inner1; $o2 = new TestClass; $o2->a = 'abc'; $o2->b = ['a', 'b', 'c']; $o2->c = 123456; $o2->d = $inner2; $o3 = new TestClass; $o3->a = 'abc'; $o3->b = ['a', 'b', 'c']; $o3->c = 123456; $o3->d = $inner3; var_dump([ md5(json_encode($o1)), md5(json_encode($o2)), md5(json_encode($o3)), ]); var_dump($o1 == $o2); var_dump($o1 === $o2);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(32) "91a910e61d9aa2a0a1d2a9d9c158187b" [1]=> string(32) "91a910e61d9aa2a0a1d2a9d9c158187b" [2]=> string(32) "4083f1724cd56a1f296e35edda523981" } 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:
50.61 ms | 401 KiB | 8 Q