3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \stdClass(); $a->foo = 'bar'; $b = clone $a; $ah = spl_object_hash($a); $bh = spl_object_hash($b); echo $ah . PHP_EOL; echo $bh . PHP_EOL; echo $ah == $bh ? 'true' : 'false';
based on vTuJJ
Output for 7.2.0
0000000040c34b1a000000002d544f9d 0000000040c34b19000000002d544f9d false
Output for 7.1.10
000000001c1bfd19000000003b526dcb 000000001c1bfd1a000000003b526dcb false
Output for 7.1.7
000000007c795a770000000050b610e4 000000007c795a740000000050b610e4 false
Output for 7.1.6
00000000737e8c0d000000004820736b 00000000737e8c0e000000004820736b false
Output for 7.1.5
000000004677f045000000001f196cf1 000000004677f046000000001f196cf1 false
Output for 7.1.0
0000000033148c070000000048fa56f1 0000000033148c040000000048fa56f1 false
Output for 7.0.20
000000003763e217000000006339e8db 000000003763e214000000006339e8db false
Output for 7.0.6
00000000565870d50000000054df253f 00000000565870d60000000054df253f false
Output for 7.0.5
00000000567cdc4d000000000a5464e6 00000000567cdc4e000000000a5464e6 false
Output for 7.0.4
000000003dd89bfe000000004ac706bd 000000003dd89bfd000000004ac706bd false
Output for 7.0.3
0000000010a72f49000000004ce2753c 0000000010a72f4a000000004ce2753c false
Output for 7.0.2
000000006b12a7510000000011329c14 000000006b12a7520000000011329c14 false
Output for 7.0.1
000000007b6232f1000000004111e162 000000007b6232f2000000004111e162 false
Output for 7.0.0
000000005e23bd3b0000000015b5c996 000000005e23bd380000000015b5c996 false
Output for 5.6.28
000000005a7fb6850000000060904799 000000005a7fb6860000000060904799 false
Output for 5.6.21
000000007ba9bcdd000000003dc9e960 000000007ba9bcde000000003dc9e960 false
Output for 5.6.20
00000000774ea73d0000000063ed697b 00000000774ea73e0000000063ed697b false
Output for 5.6.19
000000000c7d7f3b0000000063597aec 000000000c7d7f380000000063597aec false
Output for 5.6.18
0000000002e72caf000000006dbc62f2 0000000002e72cac000000006dbc62f2 false
Output for 5.6.17
000000004aafeb860000000068321551 000000004aafeb850000000068321551 false
Output for 5.6.16
000000005da9297e000000006497b82e 000000005da9297d000000006497b82e false
Output for 5.6.15
000000001c4c2f8a000000007ca7b5f8 000000001c4c2f89000000007ca7b5f8 false
Output for 5.6.14
000000002feb29b30000000059255483 000000002feb29b00000000059255483 false
Output for 5.6.13
0000000038cbb69d0000000039cc5e8b 0000000038cbb69e0000000039cc5e8b false
Output for 5.6.12
00000000473766240000000007e9ca37 00000000473766270000000007e9ca37 false
Output for 5.6.11
000000002f1aa55d000000000981e43a 000000002f1aa55e000000000981e43a false
Output for 5.6.10
0000000070d7a07c000000000ed61fb1 0000000070d7a07f000000000ed61fb1 false
Output for 5.6.9
000000001c37f7dc0000000065384f9a 000000001c37f7df0000000065384f9a false
Output for 5.6.8
000000007e21e0000000000073305478 000000007e21e0030000000073305478 false
Output for 5.5.35
00000000700747eb000000001b75f92a 00000000700747e8000000001b75f92a false
Output for 5.5.34
000000005b2676f6000000007e76ab67 000000005b2676f5000000007e76ab67 false
Output for 5.5.33
000000007658a896000000004ce6488b 000000007658a895000000004ce6488b false
Output for 5.5.32
000000002f060862000000006faf155a 000000002f060861000000006faf155a false
Output for 5.5.31
0000000002d56c480000000028ad930a 0000000002d56c4b0000000028ad930a false
Output for 5.5.30
0000000063d11bab0000000049e50ee3 0000000063d11ba80000000049e50ee3 false
Output for 5.5.29
000000000447bb420000000022de6c6b 000000000447bb410000000022de6c6b false
Output for 5.5.28
00000000756346a600000000081b94e4 00000000756346a500000000081b94e4 false
Output for 5.5.27
000000004255a91d000000000aa9b9e7 000000004255a91e000000000aa9b9e7 false
Output for 5.5.26
000000006a375d0a000000002f788c23 000000006a375d09000000002f788c23 false
Output for 5.5.25
000000002003313e000000001c9ef89e 000000002003313d000000001c9ef89e false
Output for 5.5.24
000000006db227f30000000076f6dab5 000000006db227f00000000076f6dab5 false
Output for 5.4.45
000000004e2498700000000067e6172b 000000004e2498730000000067e6172b false
Output for 5.4.44
00000000073d90be000000000b6b091f 00000000073d90bd000000000b6b091f false
Output for 5.4.43
000000007916c811000000004952fc88 000000007916c812000000004952fc88 false
Output for 5.4.42
0000000011640a13000000000eec15f1 0000000011640a10000000000eec15f1 false
Output for 5.4.41
00000000609da04d000000002c2aeda8 00000000609da04e000000002c2aeda8 false
Output for 5.4.40
000000007056fd2100000000707a8d80 000000007056fd2200000000707a8d80 false
Output for 5.4.39
00000000557ed9cd000000001510b78f 00000000557ed9ce000000001510b78f false
Output for 5.4.38
000000002530b48a000000003a573f51 000000002530b489000000003a573f51 false
Output for 5.4.37
000000003cce0f620000000074903281 000000003cce0f610000000074903281 false
Output for 5.4.36
0000000005ea04280000000056d66d5e 0000000005ea042b0000000056d66d5e false
Output for 5.4.35
0000000005c5b55c0000000033d52811 0000000005c5b55f0000000033d52811 false
Output for 5.4.34
0000000001d2c1b8000000001dda6f97 0000000001d2c1bb000000001dda6f97 false
Output for 5.4.32
0000000013e11f7e00000000435aaf79 0000000013e11f7d00000000435aaf79 false
Output for 5.4.31
000000002058abaf000000006e33e4e6 000000002058abac000000006e33e4e6 false
Output for 5.4.30
000000005f640743000000003f0af048 000000005f640740000000003f0af048 false
Output for 5.4.29
000000001b49d97e0000000049dfc812 000000001b49d97d0000000049dfc812 false
Output for 5.4.28
000000002d8d2ef0000000000e806347 000000002d8d2ef3000000000e806347 false
Output for 5.4.27
000000006f8e66010000000002be6f41 000000006f8e66020000000002be6f41 false
Output for 5.4.26
00000000199bc14c000000007dbd590b 00000000199bc14f000000007dbd590b false
Output for 5.4.25
0000000002188db70000000034e73ead 0000000002188db40000000034e73ead false
Output for 5.4.24
000000003fdfe1fc0000000065546ef9 000000003fdfe1ff0000000065546ef9 false
Output for 5.4.23
00000000455abda7000000006a1c4560 00000000455abda4000000006a1c4560 false
Output for 5.4.22
0000000001c968d80000000009d4c00c 0000000001c968db0000000009d4c00c false
Output for 5.4.21
00000000436673e7000000005b47cbba 00000000436673e4000000005b47cbba false
Output for 5.4.20
000000000872d37f0000000078fa715e 000000000872d37c0000000078fa715e false
Output for 5.4.19
000000001cb0acd300000000552be5f4 000000001cb0acd000000000552be5f4 false
Output for 5.4.18
000000006caec295000000002588d8c5 000000006caec296000000002588d8c5 false
Output for 5.4.17
00000000523cdba800000000686adf52 00000000523cdbab00000000686adf52 false
Output for 5.4.16
000000006864b530000000004faf7bbc 000000006864b533000000004faf7bbc false
Output for 5.4.15
000000005eb096d9000000007eaf3797 000000005eb096da000000007eaf3797 false
Output for 5.4.14
0000000059a8210b000000006b21f628 0000000059a82108000000006b21f628 false
Output for 5.4.13
0000000013d5ea2e000000004034d8f3 0000000013d5ea2d000000004034d8f3 false
Output for 5.4.12
000000006524127d0000000001da6b01 000000006524127e0000000001da6b01 false
Output for 5.4.11
0000000016ee801b00000000367cc236 0000000016ee801800000000367cc236 false
Output for 5.4.10
0000000019b1ae67000000005a5bdb85 0000000019b1ae64000000005a5bdb85 false
Output for 5.4.9
000000003a00dc75000000001ce5ba76 000000003a00dc76000000001ce5ba76 false
Output for 5.3.29
0000000019bfd551000000005e415461 0000000019bfd552000000005e415461 false
Output for 5.3.28
0000000049e32dfb000000000e0d6ca3 0000000049e32df8000000000e0d6ca3 false
Output for 5.3.27
000000001afc0dcc00000000153aa0e6 000000001afc0dcf00000000153aa0e6 false
Output for 5.3.26
000000003cde5ac8000000003d015079 000000003cde5acb000000003d015079 false
Output for 5.3.25
000000003033e41b00000000220cf5a8 000000003033e41800000000220cf5a8 false
Output for 5.3.24
000000006d1f38110000000023a4d317 000000006d1f38120000000023a4d317 false
Output for 5.3.23
0000000023ef6ace0000000075709df1 0000000023ef6acd0000000075709df1 false
Output for 5.3.22
000000001466062c000000006ea08cd6 000000001466062f000000006ea08cd6 false
Output for 5.3.21
0000000022cef2ad0000000008f29f5b 0000000022cef2ae0000000008f29f5b false
Output for 5.3.20
0000000020fd346f000000005ec28f2a 0000000020fd346c000000005ec28f2a false
Output for 5.3.19
000000003f989469000000005c40796e 000000003f98946a000000005c40796e false