3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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";
based on 2h5QE
Output for 7.1.0
000000004473535b000000001d5c3629-2 0000000044735358000000001d5c3629-1
Output for 7.0.14
000000002a3f8f8100000000413d21a6-2 000000002a3f8f8200000000413d21a6-1
Output for 7.0.6
000000007c8c7a80000000006bbdc737-2 000000007c8c7a83000000006bbdc737-1
Output for 7.0.5
0000000062106d66000000001485727a-2 0000000062106d65000000001485727a-1
Output for 7.0.4
0000000054b17e020000000077ef3f1f-2 0000000054b17e010000000077ef3f1f-1
Output for 7.0.3
0000000045a19aeb0000000000f4b30f-2 0000000045a19ae80000000000f4b30f-1
Output for 7.0.2
000000005254486f0000000046556f98-2 000000005254486c0000000046556f98-1
Output for 7.0.1
000000005f976c20000000006aa843a0-2 000000005f976c23000000006aa843a0-1
Output for 7.0.0
0000000024dca6eb0000000058e6f469-2 0000000024dca6e80000000058e6f469-1
Output for 5.6.28
000000006c4699b1000000001a6f646a-2 000000006c4699b2000000001a6f646a-1
Output for 5.6.21
000000006a7aa230000000006315bca3-2 000000006a7aa233000000006315bca3-1
Output for 5.6.20
00000000316b137d000000004934a201-2 00000000316b137e000000004934a201-1
Output for 5.6.19
0000000066e7608100000000465fbec2-2 0000000066e7608200000000465fbec2-1
Output for 5.6.18
0000000036f46b38000000004baf3ff6-2 0000000036f46b3b000000004baf3ff6-1
Output for 5.6.17
000000007e73412f000000006b1d5e06-2 000000007e73412c000000006b1d5e06-1
Output for 5.6.16
000000001981117e000000005e56d018-2 000000001981117d000000005e56d018-1
Output for 5.6.15
0000000059ffcd7f000000001255ba16-2 0000000059ffcd7c000000001255ba16-1
Output for 5.6.14
000000001815c865000000000b552161-2 000000001815c866000000000b552161-1
Output for 5.6.13
00000000294af1c40000000044ccf645-2 00000000294af1c70000000044ccf645-1
Output for 5.6.12
0000000053391a7500000000707901de-2 0000000053391a7600000000707901de-1
Output for 5.6.11
000000004cf2195e000000000904ef37-2 000000004cf2195d000000000904ef37-1
Output for 5.6.10
0000000023f2d2fc000000000b96ef22-2 0000000023f2d2ff000000000b96ef22-1
Output for 5.6.9
000000004c35de160000000009ada22b-2 000000004c35de150000000009ada22b-1
Output for 5.6.8
0000000058d297a30000000051eb5250-2 0000000058d297a00000000051eb5250-1
Output for 5.5.35
0000000060176cca000000007742de2c-2 0000000060176cc9000000007742de2c-1
Output for 5.5.34
000000001e5e462c0000000018639777-2 000000001e5e462f0000000018639777-1
Output for 5.5.33
0000000061394cf100000000088542b3-2 0000000061394cf200000000088542b3-1
Output for 5.5.32
000000006ae749f90000000003141bc5-2 000000006ae749fa0000000003141bc5-1
Output for 5.5.31
0000000025f5c732000000003e384b2d-2 0000000025f5c731000000003e384b2d-1
Output for 5.5.30
00000000377094310000000014c23dd8-2 00000000377094320000000014c23dd8-1
Output for 5.5.29
00000000037fc6b60000000035437c19-2 00000000037fc6b50000000035437c19-1
Output for 5.5.28
000000003f81ece4000000001615cbbe-2 000000003f81ece7000000001615cbbe-1
Output for 5.5.27
0000000057b6f4410000000058748bb9-2 0000000057b6f4420000000058748bb9-1
Output for 5.5.26
000000001a4703a10000000003f124b4-2 000000001a4703a20000000003f124b4-1
Output for 5.5.25
00000000006830430000000077753ef5-2 00000000006830400000000077753ef5-1
Output for 5.5.24
0000000035bd3e330000000013037ecd-2 0000000035bd3e300000000013037ecd-1
Output for 5.4.45
00000000113acf090000000013cd5d39-2 00000000113acf0a0000000013cd5d39-1
Output for 5.4.44
00000000179d17fd00000000177c3b2a-2 00000000179d17fe00000000177c3b2a-1
Output for 5.4.43
000000006878c1db000000004f541346-2 000000006878c1d8000000004f541346-1
Output for 5.4.42
0000000073e771de000000001cac2d98-2 0000000073e771dd000000001cac2d98-1
Output for 5.4.41
000000007b33440d0000000048881652-2 000000007b33440e0000000048881652-1
Output for 5.4.40
00000000037af10700000000710177d1-2 00000000037af10400000000710177d1-1
Output for 5.4.39
0000000076c2073c0000000030aa16a6-2 0000000076c2073f0000000030aa16a6-1
Output for 5.4.38
000000000aa4d7eb000000006f5cda5e-2 000000000aa4d7e8000000006f5cda5e-1
Output for 5.4.37
000000004f4372f7000000005565b21c-2 000000004f4372f4000000005565b21c-1
Output for 5.4.36
000000007bd7ca080000000045f787fe-2 000000007bd7ca0b0000000045f787fe-1
Output for 5.4.35
000000005bb6282c000000003d16fa7d-2 000000005bb6282f000000003d16fa7d-1
Output for 5.4.34
00000000675045b5000000004a9b838e-2 00000000675045b6000000004a9b838e-1
Output for 5.4.32
000000001cc011be000000004ab46ca2-2 000000001cc011bd000000004ab46ca2-1
Output for 5.4.31
00000000071d64900000000020330332-2 00000000071d64930000000020330332-1
Output for 5.4.30
000000002938c3010000000044142556-2 000000002938c3020000000044142556-1
Output for 5.4.29
000000001103755d000000005ccecf31-2 000000001103755e000000005ccecf31-1
Output for 5.4.28
000000007d687f7300000000188e9b4c-2 000000007d687f7000000000188e9b4c-1
Output for 5.4.27
000000000e021ac90000000061071661-2 000000000e021aca0000000061071661-1
Output for 5.4.26
000000003fae6ad0000000005d74b986-2 000000003fae6ad3000000005d74b986-1
Output for 5.4.25
0000000057c2e00f000000000b7c19db-2 0000000057c2e00c000000000b7c19db-1
Output for 5.4.24
0000000034ec4a610000000044720a7e-2 0000000034ec4a620000000044720a7e-1
Output for 5.4.23
000000000fbea03b000000007852cd2d-2 000000000fbea038000000007852cd2d-1
Output for 5.4.22
000000006e01262b0000000066b102aa-2 000000006e0126280000000066b102aa-1
Output for 5.4.21
0000000006679a550000000059c1a1d2-2 0000000006679a560000000059c1a1d2-1
Output for 5.4.20
000000004454d1b0000000000d8cbdae-2 000000004454d1b3000000000d8cbdae-1
Output for 5.4.19
00000000555971f700000000426ec577-2 00000000555971f400000000426ec577-1
Output for 5.4.18
0000000012911e69000000006ed93853-2 0000000012911e6a000000006ed93853-1
Output for 5.4.17
000000003cef45e60000000076acaa2b-2 000000003cef45e50000000076acaa2b-1
Output for 5.4.16
000000007b562e17000000002f58142a-2 000000007b562e14000000002f58142a-1
Output for 5.4.15
0000000043c547d9000000003e58ec44-2 0000000043c547da000000003e58ec44-1
Output for 5.4.14
00000000612a8bf50000000047bb5625-2 00000000612a8bf60000000047bb5625-1
Output for 5.4.13
0000000010aa8dd2000000001b276005-2 0000000010aa8dd1000000001b276005-1
Output for 5.4.12
00000000604b855e000000001885ce45-2 00000000604b855d000000001885ce45-1
Output for 5.4.11
0000000050d3b35d000000001a5b5f46-2 0000000050d3b35e000000001a5b5f46-1
Output for 5.4.10
0000000002738f45000000002eea0601-2 0000000002738f46000000002eea0601-1
Output for 5.4.9
00000000234bb76c0000000005a8f299-2 00000000234bb76f0000000005a8f299-1
Output for 5.4.8
0000000067ba0cca000000002477a3ab-2 0000000067ba0cc9000000002477a3ab-1
Output for 5.4.7
000000002213f06f000000004f534abb-2 000000002213f06c000000004f534abb-1
Output for 5.4.6
000000003a6c19a3000000005f392301-2 000000003a6c19a0000000005f392301-1
Output for 5.4.5
0000000031ab0f3500000000429aa2b3-2 0000000031ab0f3600000000429aa2b3-1
Output for 5.4.4
0000000012509418000000004096d73a-2 000000001250941b000000004096d73a-1
Output for 5.4.3
000000005d1c05e0000000002a02f493-2 000000005d1c05e3000000002a02f493-1
Output for 5.4.2
0000000003c8648b000000002f5b6a44-2 0000000003c86488000000002f5b6a44-1
Output for 5.4.1
000000005e624713000000004962dacb-2 000000005e624710000000004962dacb-1
Output for 5.4.0
0000000056980c13000000006c951e5d-2 0000000056980c10000000006c951e5d-1
Output for 5.3.29
00000000255592b4000000005f8348cd-2 00000000255592b7000000005f8348cd-1
Output for 5.3.28
0000000063298f2e0000000073627665-2 0000000063298f2d0000000073627665-1
Output for 5.3.27
000000004264e012000000006ba6f2f7-2 000000004264e011000000006ba6f2f7-1
Output for 5.3.26
000000003cfa2e0b000000000fcb6a87-2 000000003cfa2e08000000000fcb6a87-1
Output for 5.3.25
000000000472eab2000000006861f7ef-2 000000000472eab1000000006861f7ef-1
Output for 5.3.24
0000000014a900c60000000046f355b4-2 0000000014a900c50000000046f355b4-1
Output for 5.3.23
000000007f6a21ea0000000050786511-2 000000007f6a21e90000000050786511-1
Output for 5.3.22
00000000175e0dd00000000029bab24b-2 00000000175e0dd30000000029bab24b-1
Output for 5.3.21
00000000173c1b1d000000006124d7d1-2 00000000173c1b1e000000006124d7d1-1
Output for 5.3.20
00000000548c4dee0000000010f6c6e0-2 00000000548c4ded0000000010f6c6e0-1
Output for 5.3.19
00000000104dc785000000004cbc50de-2 00000000104dc786000000004cbc50de-1
Output for 5.3.18
000000000e932a63000000001ca93b16-2 000000000e932a60000000001ca93b16-1
Output for 5.3.17
00000000512d77ae000000005acd63d0-2 00000000512d77ad000000005acd63d0-1
Output for 5.3.16
000000005d7968ab000000003016e647-2 000000005d7968a8000000003016e647-1
Output for 5.3.15
0000000052175bb300000000193ebdba-2 0000000052175bb000000000193ebdba-1
Output for 5.3.14
000000005cf10f520000000011229ebd-2 000000005cf10f510000000011229ebd-1
Output for 5.3.13
00000000735851fa0000000035fcf60d-2 00000000735851f90000000035fcf60d-1
Output for 5.3.12
0000000003daf9190000000069be1152-2 0000000003daf91a0000000069be1152-1
Output for 5.3.11
000000007b37396200000000766f0e18-2 000000007b37396100000000766f0e18-1
Output for 5.3.10
0000000002b655050000000066d301b4-2 0000000002b655060000000066d301b4-1
Output for 5.3.9
000000001ce19c5b000000005f4d0040-2 000000001ce19c58000000005f4d0040-1
Output for 5.3.8
000000007cd4c13f00000000754769e7-2 000000007cd4c13c00000000754769e7-1
Output for 5.3.7
0000000017722cff000000006f3fa4ac-2 0000000017722cfc000000006f3fa4ac-1
Output for 5.3.6
000000001464e0b20000000000c572c2-2 000000001464e0b10000000000c572c2-1
Output for 5.3.5
00000000045dfde80000000053c0f86b-2 00000000045dfdeb0000000053c0f86b-1
Output for 5.3.4
0000000024c521d0000000000e9bf6a1-2 0000000024c521d3000000000e9bf6a1-1
Output for 5.3.3
000000001a01cabd00000000394a01a1-2 000000001a01cabe00000000394a01a1-1
Output for 5.3.2
000000000ffa686f00000000264df685-2 000000000ffa686c00000000264df685-1
Output for 5.3.1
000000000a4a27710000000006bc7d3f-2 000000000a4a27720000000006bc7d3f-1
Output for 5.3.0
000000005e4900330000000057f5b8cb-2 000000005e4900300000000057f5b8cb-1
Output for 5.2.17
1bc0c4441cc66a8d1bb41a8af7ae1e1c-7998300702265526662 861a2f056a593edc2697eec710327754--926255680043326709
Output for 5.2.15 - 5.2.16
56907a50a8e9c975d074d7b1009d5a74--1403856451194363530 bab3da487bfe51e3bada7ed6962c83d7-47252500280834051
Output for 5.2.14
6020ade232c05125fb3382e3b26ec44b-6304467373828594552 6827d7150a80a95428b05b2dbc0dcb10-6879966805752226569
Output for 5.2.13
332b22f9fcb62d8c8853f59a96cf0568--560030245246270065 4d9da188dd696504eef8aed3fde97e02--8751378063310172921
Output for 5.2.12
76f70bcddf428556b587cdd5bef0f40e--86431807776459435 617357606fc417e758728410d8dad7f3--1636862652146325532
Output for 5.2.9, 5.2.11
7466004bf89a7ccbc9d57bbe23aee10f--5297998294899966776 52ee78937c6a89104904aed13987318e--8002401455091988205
Output for 5.2.10
c9e7ad354f4391649e23480759c6653e--7376654622809021963 efe88f76f26081279f31ba49d381104e--4634210649778769419
Output for 5.2.7 - 5.2.8
211922ba75154e1c078b478e27988a06-5950309269566349365 af89ab9ae8be1068e0d8dc48e55bfcd1--2593167517948297687
Output for 5.2.6
8d62d4db96875809e27de28a778efc7c--3702957449453599652 950969556ed71c6f363f434ecae32954--3100782909280289700
Output for 5.2.5
48d05d7abab6ca87f8a99c22534056d2--6599677603428457852 a7965ec2cba63ba225597f43def8a4b6-5417618798257328131
Output for 5.2.4
905eb61e16b35c95f6ff5fbd1cac925b-7882366297991297027 7ebbed9ad06ebcbd0c3782f6cdf89b51--8969321189028272962
Output for 5.2.3
35ebaf980762764da73312a19fb36caf--8372632711571524018 dc90896f8dce368265954f0524e2a853-7112670485109471235
Output for 5.2.2
55ba1e034ca9908ef2186f5ca57db953-7731521595134719185 d1877c094161b942518f0f010b1a5be5--1191620021511775137
Output for 5.2.1
c1357d69cdbf6a57522e24153241fcc4-265166992983263235 5663e593b52467eb39485ab4532cfb71--7712248318999001112
Output for 5.2.0
37ce1a2271f4a9d32af6948919f26787-6943519020815732012 73f03f2749114a53db076b2f4bc47285-2621781937077235372
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function spl_object_hash() in /in/CUe6E on line 22
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_object_hash() in /in/CUe6E on line 22
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: spl_object_hash() in /in/CUe6E on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_object_hash() in /in/CUe6E on line 22