3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (object) array(); $b = (object) array(); function object_handle($obj) { static $mask = null; if (null === $mask) { $o = (object) array(); $h = hexdec(substr(spl_object_hash($o), 0, 16)); ob_start(); debug_zval_dump($o); $mask = ob_get_clean(); $mask = $h ^ (int) substr($mask, 1 + strpos($mask, '#')); } return hexdec(substr(spl_object_hash($obj), 0, 16)) ^ $mask; } echo spl_object_hash($b), '-', object_handle($b), "\n"; echo spl_object_hash($a), '-', object_handle($a), "\n";
Output for git.master, git.master_jit, rfc.property-hooks
00000000000000020000000000000000-2 00000000000000010000000000000000-1

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