3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new \stdClass; $b = new \stdClass; $c = $a; var_dump(spl_object_hash($a)); var_dump(spl_object_hash($b)); var_dump(spl_object_hash($c)); $aa = [$b]; var_dump(in_array($c, $aa));
based on XMJtK
Output for 7.2.0
string(32) "000000003a0bd18d0000000018f2c509" string(32) "000000003a0bd18e0000000018f2c509" string(32) "000000003a0bd18d0000000018f2c509" bool(true)
Output for 7.1.10
string(32) "000000004980d1320000000044ecb1b9" string(32) "000000004980d1310000000044ecb1b9" string(32) "000000004980d1320000000044ecb1b9" bool(true)
Output for 7.1.7
string(32) "000000000118bddb000000007bdf828d" string(32) "000000000118bdd8000000007bdf828d" string(32) "000000000118bddb000000007bdf828d" bool(true)
Output for 7.1.6
string(32) "0000000046596706000000006f7ccf98" string(32) "0000000046596705000000006f7ccf98" string(32) "0000000046596706000000006f7ccf98" bool(true)
Output for 7.1.5
string(32) "000000002ac6f9b70000000009cf032b" string(32) "000000002ac6f9b40000000009cf032b" string(32) "000000002ac6f9b70000000009cf032b" bool(true)
Output for 7.1.0
string(32) "000000007cea6cdc0000000025f10561" string(32) "000000007cea6cdf0000000025f10561" string(32) "000000007cea6cdc0000000025f10561" bool(true)
Output for 7.0.20
string(32) "000000004424b40b0000000013fdb5cd" string(32) "000000004424b4080000000013fdb5cd" string(32) "000000004424b40b0000000013fdb5cd" bool(true)
Output for 7.0.6
string(32) "0000000061a9437b000000000254453d" string(32) "0000000061a94378000000000254453d" string(32) "0000000061a9437b000000000254453d" bool(true)
Output for 7.0.5
string(32) "000000002466ff2a00000000118599d2" string(32) "000000002466ff2900000000118599d2" string(32) "000000002466ff2a00000000118599d2" bool(true)
Output for 7.0.4
string(32) "00000000749b719d000000004f979d7c" string(32) "00000000749b719e000000004f979d7c" string(32) "00000000749b719d000000004f979d7c" bool(true)
Output for 7.0.3
string(32) "000000000795d6d800000000554cd4ba" string(32) "000000000795d6db00000000554cd4ba" string(32) "000000000795d6d800000000554cd4ba" bool(true)
Output for 7.0.2
string(32) "000000005791d8ea00000000403f1f39" string(32) "000000005791d8e900000000403f1f39" string(32) "000000005791d8ea00000000403f1f39" bool(true)
Output for 7.0.1
string(32) "000000003ace78660000000054c9fdaa" string(32) "000000003ace78650000000054c9fdaa" string(32) "000000003ace78660000000054c9fdaa" bool(true)
Output for 7.0.0
string(32) "000000006e235be2000000004d92a453" string(32) "000000006e235be1000000004d92a453" string(32) "000000006e235be2000000004d92a453" bool(true)
Output for 5.6.28
string(32) "000000006794a4b700000000106998cc" string(32) "000000006794a4b400000000106998cc" string(32) "000000006794a4b700000000106998cc" bool(true)
Output for 5.6.21
string(32) "000000001425f5500000000074101cc3" string(32) "000000001425f5530000000074101cc3" string(32) "000000001425f5500000000074101cc3" bool(true)
Output for 5.6.20
string(32) "000000005a31a4cc000000002ef18952" string(32) "000000005a31a4cf000000002ef18952" string(32) "000000005a31a4cc000000002ef18952" bool(true)
Output for 5.6.19
string(32) "0000000016ab6e51000000000d761781" string(32) "0000000016ab6e52000000000d761781" string(32) "0000000016ab6e51000000000d761781" bool(true)
Output for 5.6.18
string(32) "000000006180b965000000000ec57f9a" string(32) "000000006180b966000000000ec57f9a" string(32) "000000006180b965000000000ec57f9a" bool(true)
Output for 5.6.17
string(32) "000000004d931dfc0000000027b42fee" string(32) "000000004d931dff0000000027b42fee" string(32) "000000004d931dfc0000000027b42fee" bool(true)
Output for 5.6.16
string(32) "000000006c14075100000000421b9514" string(32) "000000006c14075200000000421b9514" string(32) "000000006c14075100000000421b9514" bool(true)
Output for 5.6.15
string(32) "0000000053a9a74b000000001ca747be" string(32) "0000000053a9a748000000001ca747be" string(32) "0000000053a9a74b000000001ca747be" bool(true)
Output for 5.6.14
string(32) "000000003f7523ea000000000859f695" string(32) "000000003f7523e9000000000859f695" string(32) "000000003f7523ea000000000859f695" bool(true)
Output for 5.6.13
string(32) "0000000064cba217000000007fcd31cd" string(32) "0000000064cba214000000007fcd31cd" string(32) "0000000064cba217000000007fcd31cd" bool(true)
Output for 5.6.12
string(32) "000000001b00aee5000000004b5a3321" string(32) "000000001b00aee6000000004b5a3321" string(32) "000000001b00aee5000000004b5a3321" bool(true)
Output for 5.6.11
string(32) "0000000074fda80a0000000003c0c507" string(32) "0000000074fda8090000000003c0c507" string(32) "0000000074fda80a0000000003c0c507" bool(true)
Output for 5.6.10
string(32) "0000000015a58b9c0000000036a6c03c" string(32) "0000000015a58b9f0000000036a6c03c" string(32) "0000000015a58b9c0000000036a6c03c" bool(true)
Output for 5.6.9
string(32) "000000001d5b47160000000077397b85" string(32) "000000001d5b47150000000077397b85" string(32) "000000001d5b47160000000077397b85" bool(true)
Output for 5.6.8
string(32) "00000000298b87ef0000000039be4473" string(32) "00000000298b87ec0000000039be4473" string(32) "00000000298b87ef0000000039be4473" bool(true)
Output for 5.5.35
string(32) "000000002b59506000000000608a2c0a" string(32) "000000002b59506300000000608a2c0a" string(32) "000000002b59506000000000608a2c0a" bool(true)
Output for 5.5.34
string(32) "000000005774160a0000000037d9e2ba" string(32) "00000000577416090000000037d9e2ba" string(32) "000000005774160a0000000037d9e2ba" bool(true)
Output for 5.5.33
string(32) "0000000068cea6bc00000000446795de" string(32) "0000000068cea6bf00000000446795de" string(32) "0000000068cea6bc00000000446795de" bool(true)
Output for 5.5.32
string(32) "0000000071413c49000000002c00c300" string(32) "0000000071413c4a000000002c00c300" string(32) "0000000071413c49000000002c00c300" bool(true)
Output for 5.5.31
string(32) "0000000016e24b4a000000001abdafce" string(32) "0000000016e24b49000000001abdafce" string(32) "0000000016e24b4a000000001abdafce" bool(true)
Output for 5.5.30
string(32) "00000000113ae65a0000000047788d03" string(32) "00000000113ae6590000000047788d03" string(32) "00000000113ae65a0000000047788d03" bool(true)
Output for 5.5.29
string(32) "0000000025e912d90000000014e146c8" string(32) "0000000025e912da0000000014e146c8" string(32) "0000000025e912d90000000014e146c8" bool(true)
Output for 5.5.28
string(32) "000000000b004eeb000000006d35d7de" string(32) "000000000b004ee8000000006d35d7de" string(32) "000000000b004eeb000000006d35d7de" bool(true)
Output for 5.5.27
string(32) "0000000078c1342d0000000049a5a344" string(32) "0000000078c1342e0000000049a5a344" string(32) "0000000078c1342d0000000049a5a344" bool(true)
Output for 5.5.26
string(32) "000000000fa9a4db0000000005133794" string(32) "000000000fa9a4d80000000005133794" string(32) "000000000fa9a4db0000000005133794" bool(true)
Output for 5.5.25
string(32) "000000002b19c36e000000000be51cfc" string(32) "000000002b19c36d000000000be51cfc" string(32) "000000002b19c36e000000000be51cfc" bool(true)
Output for 5.5.24
string(32) "00000000589f97f700000000530cfb5f" string(32) "00000000589f97f400000000530cfb5f" string(32) "00000000589f97f700000000530cfb5f" bool(true)
Output for 5.4.45
string(32) "000000005f3ef904000000006e1fc086" string(32) "000000005f3ef907000000006e1fc086" string(32) "000000005f3ef904000000006e1fc086" bool(true)
Output for 5.4.44
string(32) "000000007dc096b3000000005642238a" string(32) "000000007dc096b0000000005642238a" string(32) "000000007dc096b3000000005642238a" bool(true)
Output for 5.4.43
string(32) "000000003333ec2c0000000026528725" string(32) "000000003333ec2f0000000026528725" string(32) "000000003333ec2c0000000026528725" bool(true)
Output for 5.4.42
string(32) "00000000271a958e000000002204c705" string(32) "00000000271a958d000000002204c705" string(32) "00000000271a958e000000002204c705" bool(true)
Output for 5.4.41
string(32) "0000000024b9bacf000000000fbb0b94" string(32) "0000000024b9bacc000000000fbb0b94" string(32) "0000000024b9bacf000000000fbb0b94" bool(true)
Output for 5.4.40
string(32) "000000007cd94911000000000429040f" string(32) "000000007cd94912000000000429040f" string(32) "000000007cd94911000000000429040f" bool(true)
Output for 5.4.39
string(32) "00000000070e54ed0000000003342791" string(32) "00000000070e54ee0000000003342791" string(32) "00000000070e54ed0000000003342791" bool(true)
Output for 5.4.38
string(32) "000000002b6b7e1700000000452fe695" string(32) "000000002b6b7e1400000000452fe695" string(32) "000000002b6b7e1700000000452fe695" bool(true)
Output for 5.4.37
string(32) "000000005568abbb0000000023a9a39a" string(32) "000000005568abb80000000023a9a39a" string(32) "000000005568abbb0000000023a9a39a" bool(true)
Output for 5.4.36
string(32) "0000000078dfe99d00000000137628bf" string(32) "0000000078dfe99e00000000137628bf" string(32) "0000000078dfe99d00000000137628bf" bool(true)
Output for 5.4.35
string(32) "000000001197d74700000000770c383e" string(32) "000000001197d74400000000770c383e" string(32) "000000001197d74700000000770c383e" bool(true)
Output for 5.4.34
string(32) "0000000005d24a020000000023a4df01" string(32) "0000000005d24a010000000023a4df01" string(32) "0000000005d24a020000000023a4df01" bool(true)
Output for 5.4.32
string(32) "000000000103c13400000000330015d4" string(32) "000000000103c13700000000330015d4" string(32) "000000000103c13400000000330015d4" bool(true)
Output for 5.4.31
string(32) "000000001e3b45be000000005998a567" string(32) "000000001e3b45bd000000005998a567" string(32) "000000001e3b45be000000005998a567" bool(true)
Output for 5.4.30
string(32) "00000000194feb8e0000000009c11782" string(32) "00000000194feb8d0000000009c11782" string(32) "00000000194feb8e0000000009c11782" bool(true)
Output for 5.4.29
string(32) "000000004457ed65000000006b219381" string(32) "000000004457ed66000000006b219381" string(32) "000000004457ed65000000006b219381" bool(true)
Output for 5.4.28
string(32) "000000007c1b15690000000038057286" string(32) "000000007c1b156a0000000038057286" string(32) "000000007c1b15690000000038057286" bool(true)
Output for 5.4.27
string(32) "000000006cd6b0d10000000072a22f87" string(32) "000000006cd6b0d20000000072a22f87" string(32) "000000006cd6b0d10000000072a22f87" bool(true)
Output for 5.4.26
string(32) "0000000039f6f68b0000000048289ff3" string(32) "0000000039f6f6880000000048289ff3" string(32) "0000000039f6f68b0000000048289ff3" bool(true)
Output for 5.4.25
string(32) "000000003cbb07f4000000001f83339d" string(32) "000000003cbb07f7000000001f83339d" string(32) "000000003cbb07f4000000001f83339d" bool(true)
Output for 5.4.24
string(32) "00000000409d332e00000000418cd478" string(32) "00000000409d332d00000000418cd478" string(32) "00000000409d332e00000000418cd478" bool(true)
Output for 5.4.23
string(32) "000000001a50ec64000000000b96999c" string(32) "000000001a50ec67000000000b96999c" string(32) "000000001a50ec64000000000b96999c" bool(true)
Output for 5.4.22
string(32) "000000005ab0a7ad000000007aba6125" string(32) "000000005ab0a7ae000000007aba6125" string(32) "000000005ab0a7ad000000007aba6125" bool(true)
Output for 5.4.21
string(32) "00000000378c6a1300000000723272c5" string(32) "00000000378c6a1000000000723272c5" string(32) "00000000378c6a1300000000723272c5" bool(true)
Output for 5.4.20
string(32) "000000002bb636250000000039a4de0b" string(32) "000000002bb636260000000039a4de0b" string(32) "000000002bb636250000000039a4de0b" bool(true)
Output for 5.4.19
string(32) "0000000034eb5fcf0000000068328672" string(32) "0000000034eb5fcc0000000068328672" string(32) "0000000034eb5fcf0000000068328672" bool(true)
Output for 5.4.18
string(32) "000000006049ce960000000065b1b220" string(32) "000000006049ce950000000065b1b220" string(32) "000000006049ce960000000065b1b220" bool(true)
Output for 5.4.17
string(32) "000000001dba3b120000000025c3eae1" string(32) "000000001dba3b110000000025c3eae1" string(32) "000000001dba3b120000000025c3eae1" bool(true)
Output for 5.4.16
string(32) "0000000000a7cc9b0000000054b37b26" string(32) "0000000000a7cc980000000054b37b26" string(32) "0000000000a7cc9b0000000054b37b26" bool(true)
Output for 5.4.15
string(32) "000000006a1b1c3a000000004d86fa4d" string(32) "000000006a1b1c39000000004d86fa4d" string(32) "000000006a1b1c3a000000004d86fa4d" bool(true)
Output for 5.4.14
string(32) "00000000589de6b3000000006204548a" string(32) "00000000589de6b0000000006204548a" string(32) "00000000589de6b3000000006204548a" bool(true)
Output for 5.4.13
string(32) "000000002e983a3e000000002aa28237" string(32) "000000002e983a3d000000002aa28237" string(32) "000000002e983a3e000000002aa28237" bool(true)
Output for 5.4.12
string(32) "000000001ce6f43c000000005ad56e58" string(32) "000000001ce6f43f000000005ad56e58" string(32) "000000001ce6f43c000000005ad56e58" bool(true)
Output for 5.4.11
string(32) "000000002f4e20190000000063f64653" string(32) "000000002f4e201a0000000063f64653" string(32) "000000002f4e20190000000063f64653" bool(true)
Output for 5.4.10
string(32) "0000000008b38d0200000000413b2147" string(32) "0000000008b38d0100000000413b2147" string(32) "0000000008b38d0200000000413b2147" bool(true)
Output for 5.4.9
string(32) "000000003bc65e5700000000769fe82a" string(32) "000000003bc65e5400000000769fe82a" string(32) "000000003bc65e5700000000769fe82a" bool(true)
Output for 5.4.8
string(32) "000000007d9080c9000000002392717a" string(32) "000000007d9080ca000000002392717a" string(32) "000000007d9080c9000000002392717a" bool(true)
Output for 5.4.7
string(32) "00000000552162ac0000000079004752" string(32) "00000000552162af0000000079004752" string(32) "00000000552162ac0000000079004752" bool(true)
Output for 5.4.6
string(32) "0000000079221824000000006aab7a1f" string(32) "0000000079221827000000006aab7a1f" string(32) "0000000079221824000000006aab7a1f" bool(true)
Output for 5.4.5
string(32) "000000005e797e50000000004c24cf67" string(32) "000000005e797e53000000004c24cf67" string(32) "000000005e797e50000000004c24cf67" bool(true)
Output for 5.4.4
string(32) "00000000167e1dec0000000007c884e5" string(32) "00000000167e1def0000000007c884e5" string(32) "00000000167e1dec0000000007c884e5" bool(true)
Output for 5.4.3
string(32) "0000000025d189280000000065ada67b" string(32) "0000000025d1892b0000000065ada67b" string(32) "0000000025d189280000000065ada67b" bool(true)
Output for 5.4.2
string(32) "000000004b21ecf10000000005336b86" string(32) "000000004b21ecf20000000005336b86" string(32) "000000004b21ecf10000000005336b86" bool(true)
Output for 5.4.1
string(32) "0000000009448fc000000000494c74e5" string(32) "0000000009448fc300000000494c74e5" string(32) "0000000009448fc000000000494c74e5" bool(true)
Output for 5.4.0
string(32) "0000000008439413000000004b54da67" string(32) "0000000008439410000000004b54da67" string(32) "0000000008439413000000004b54da67" bool(true)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/kvq1r on line 11
Process exited with code 255.