3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1 = (object)[1,2,10]; $var2 = (object)[1,2,10]; $objmap = new SplObjectStorage(); var_dump($objmap->getHash($var1)); var_dump($objmap->getHash($var2));
Output for 7.1.0
string(32) "0000000017823ed7000000001a6abdf9" string(32) "0000000017823ed4000000001a6abdf9"
Output for 7.0.14
string(32) "000000002189d38b000000002157bb4b" string(32) "000000002189d388000000002157bb4b"
Output for 7.0.7
string(32) "00000000208a3aa5000000003762e011" string(32) "00000000208a3aa6000000003762e011"
Output for 7.0.6
string(32) "0000000002c125f200000000302d9a1a" string(32) "0000000002c125f100000000302d9a1a"
Output for 7.0.5
string(32) "000000007749345d0000000023564b8a" string(32) "000000007749345e0000000023564b8a"
Output for 7.0.4
string(32) "0000000054d85221000000000c5cfac0" string(32) "0000000054d85222000000000c5cfac0"
Output for 7.0.3
string(32) "000000003f974e3c000000003515a5de" string(32) "000000003f974e3f000000003515a5de"
Output for 7.0.2
string(32) "0000000009466339000000002e336a0c" string(32) "000000000946633a000000002e336a0c"
Output for 7.0.1
string(32) "000000007c10234c0000000017f707de" string(32) "000000007c10234f0000000017f707de"
Output for 7.0.0
string(32) "00000000055cebb8000000006402b0ce" string(32) "00000000055cebbb000000006402b0ce"
Output for hhvm-3.12.0
string(32) "0000000000000000f3f6124fff5f2820" string(32) "0000000000000000f3f6124fff5f2800"
Output for hhvm-3.10.0
string(32) "0000000000000000fcdf91bd2069ba83" string(32) "0000000000000000fcdf91bd2069baa3"
Output for 5.6.28
string(32) "000000002e676d5b0000000030b3a790" string(32) "000000002e676d580000000030b3a790"
Output for 5.6.22
string(32) "00000000667eaeca000000002dffd5da" string(32) "00000000667eaec9000000002dffd5da"
Output for 5.6.21
string(32) "000000000e3aabac0000000044eca335" string(32) "000000000e3aabaf0000000044eca335"
Output for 5.6.20
string(32) "0000000001c9fcad0000000022bc21a7" string(32) "0000000001c9fcae0000000022bc21a7"
Output for 5.6.19
string(32) "0000000077c2f3ad0000000020863069" string(32) "0000000077c2f3ae0000000020863069"
Output for 5.6.18
string(32) "0000000038d451b10000000068ec97c2" string(32) "0000000038d451b20000000068ec97c2"
Output for 5.6.17
string(32) "0000000078ef46530000000016956e22" string(32) "0000000078ef46500000000016956e22"
Output for 5.6.16
string(32) "00000000061d07da0000000063c56698" string(32) "00000000061d07d90000000063c56698"
Output for 5.6.15
string(32) "0000000069a0df1b000000003e70ab9c" string(32) "0000000069a0df18000000003e70ab9c"
Output for 5.6.14
string(32) "0000000030c1887600000000251a8875" string(32) "0000000030c1887500000000251a8875"
Output for 5.6.13
string(32) "000000004fd290ba000000003d445171" string(32) "000000004fd290b9000000003d445171"
Output for 5.6.12
string(32) "000000007efa744d00000000204bc274" string(32) "000000007efa744e00000000204bc274"
Output for 5.6.11
string(32) "0000000024c3b30d000000003fe6491a" string(32) "0000000024c3b30e000000003fe6491a"
Output for 5.6.10
string(32) "000000004c6276f3000000004b2d8c1f" string(32) "000000004c6276f0000000004b2d8c1f"
Output for 5.6.9
string(32) "000000005d8afb980000000022901242" string(32) "000000005d8afb9b0000000022901242"
Output for 5.6.8
string(32) "000000003ed48385000000001536ef1d" string(32) "000000003ed48386000000001536ef1d"
Output for 5.6.7
string(32) "0000000047fd12fa0000000057612e2e" string(32) "0000000047fd12f90000000057612e2e"
Output for 5.6.6
string(32) "000000001f83b9c9000000002b6b005f" string(32) "000000001f83b9ca000000002b6b005f"
Output for 5.6.5
string(32) "00000000645955160000000036cf6640" string(32) "00000000645955150000000036cf6640"
Output for 5.6.4
string(32) "000000003634f5dd000000000a2a7456" string(32) "000000003634f5de000000000a2a7456"
Output for 5.6.3
string(32) "000000002c126ccd0000000011828036" string(32) "000000002c126cce0000000011828036"
Output for 5.6.2
string(32) "000000004a42d6790000000068d4e2b5" string(32) "000000004a42d67a0000000068d4e2b5"
Output for 5.6.1
string(32) "0000000015d1f52f00000000582dde52" string(32) "0000000015d1f52c00000000582dde52"
Output for 5.6.0
string(32) "000000007d90a810000000000a527a9a" string(32) "000000007d90a813000000000a527a9a"
Output for 5.5.36
string(32) "0000000067b6ddca000000001b1c6da5" string(32) "0000000067b6ddc9000000001b1c6da5"
Output for 5.5.35
string(32) "0000000059d3791e000000001e456512" string(32) "0000000059d3791d000000001e456512"
Output for 5.5.34
string(32) "000000000f902de50000000034130a97" string(32) "000000000f902de60000000034130a97"
Output for 5.5.33
string(32) "00000000450c9079000000007866a62c" string(32) "00000000450c907a000000007866a62c"
Output for 5.5.32
string(32) "000000005f7c7a5b0000000035deffa6" string(32) "000000005f7c7a580000000035deffa6"
Output for 5.5.31
string(32) "000000006457652c00000000388ba683" string(32) "000000006457652f00000000388ba683"
Output for 5.5.30
string(32) "000000004ba4c7e2000000000f57176f" string(32) "000000004ba4c7e1000000000f57176f"
Output for 5.5.29
string(32) "000000006b847f4d000000007c269796" string(32) "000000006b847f4e000000007c269796"
Output for 5.5.28
string(32) "0000000056ca7aef0000000001a3c324" string(32) "0000000056ca7aec0000000001a3c324"
Output for 5.5.27
string(32) "000000000522a78d0000000063291d93" string(32) "000000000522a78e0000000063291d93"
Output for 5.5.26
string(32) "000000005fab66b100000000577ed30f" string(32) "000000005fab66b200000000577ed30f"
Output for 5.5.25
string(32) "000000007141cd39000000005f5d2d22" string(32) "000000007141cd3a000000005f5d2d22"
Output for 5.5.24
string(32) "00000000507be4e6000000005b455e8f" string(32) "00000000507be4e5000000005b455e8f"
Output for 5.5.23
string(32) "000000001bcbf0d4000000003556fd3f" string(32) "000000001bcbf0d7000000003556fd3f"
Output for 5.5.22
string(32) "000000005dd99790000000006f98567f" string(32) "000000005dd99793000000006f98567f"
Output for 5.5.21
string(32) "000000007e0fb3da00000000126290a3" string(32) "000000007e0fb3d900000000126290a3"
Output for 5.5.20
string(32) "00000000703d4c94000000000a09aac2" string(32) "00000000703d4c97000000000a09aac2"
Output for 5.5.19
string(32) "0000000067ba5f24000000007c94b378" string(32) "0000000067ba5f27000000007c94b378"
Output for 5.5.18
string(32) "0000000007920f62000000002ecad761" string(32) "0000000007920f61000000002ecad761"
Output for 5.5.16
string(32) "0000000010caba27000000007c1f5a32" string(32) "0000000010caba24000000007c1f5a32"
Output for 5.5.15
string(32) "000000001367c115000000002adea1f9" string(32) "000000001367c116000000002adea1f9"
Output for 5.5.14
string(32) "000000000745482b000000002130e898" string(32) "0000000007454828000000002130e898"
Output for 5.5.13
string(32) "0000000039dd5de5000000001d78c654" string(32) "0000000039dd5de6000000001d78c654"
Output for 5.5.12
string(32) "0000000056fdb1cc000000003515c74f" string(32) "0000000056fdb1cf000000003515c74f"
Output for 5.5.11
string(32) "000000002deb433c000000007b806286" string(32) "000000002deb433f000000007b806286"
Output for 5.5.10
string(32) "00000000126e0b2d0000000024bdca39" string(32) "00000000126e0b2e0000000024bdca39"
Output for 5.5.9
string(32) "000000003b7bc4d2000000003254a923" string(32) "000000003b7bc4d1000000003254a923"
Output for 5.5.8
string(32) "00000000050de0280000000020becc07" string(32) "00000000050de02b0000000020becc07"
Output for 5.5.7
string(32) "0000000047a9b69100000000713366b6" string(32) "0000000047a9b69200000000713366b6"
Output for 5.5.6
string(32) "0000000025cc96c000000000150a5afe" string(32) "0000000025cc96c300000000150a5afe"
Output for 5.5.5
string(32) "0000000071e7932c0000000061e4d4a8" string(32) "0000000071e7932f0000000061e4d4a8"
Output for 5.5.4
string(32) "000000003d099dfa00000000452af486" string(32) "000000003d099df900000000452af486"
Output for 5.5.3
string(32) "000000006a39ca5d00000000075a0f48" string(32) "000000006a39ca5e00000000075a0f48"
Output for 5.5.2
string(32) "00000000496a5759000000004d08021e" string(32) "00000000496a575a000000004d08021e"
Output for 5.5.1
string(32) "0000000033d364a40000000068ce1c6c" string(32) "0000000033d364a70000000068ce1c6c"
Output for 5.5.0
string(32) "000000007d329efe0000000043f3c9f9" string(32) "000000007d329efd0000000043f3c9f9"
Output for 5.4.45
string(32) "00000000561c18e8000000005ba71a25" string(32) "00000000561c18eb000000005ba71a25"
Output for 5.4.44
string(32) "00000000456e7657000000004e163fc4" string(32) "00000000456e7654000000004e163fc4"
Output for 5.4.43
string(32) "0000000007c23e450000000072a38e43" string(32) "0000000007c23e460000000072a38e43"
Output for 5.4.42
string(32) "0000000075ceb71b0000000049136d93" string(32) "0000000075ceb7180000000049136d93"
Output for 5.4.41
string(32) "0000000059e06ee20000000025fbacce" string(32) "0000000059e06ee10000000025fbacce"
Output for 5.4.40
string(32) "00000000712b9b4a0000000031e79178" string(32) "00000000712b9b490000000031e79178"
Output for 5.4.39
string(32) "00000000052b4142000000002b24059c" string(32) "00000000052b4141000000002b24059c"
Output for 5.4.38
string(32) "0000000063cbb161000000004ec134d4" string(32) "0000000063cbb162000000004ec134d4"
Output for 5.4.37
string(32) "000000005c34d3250000000079a3ecec" string(32) "000000005c34d3260000000079a3ecec"
Output for 5.4.36
string(32) "000000006774f73f00000000474471e6" string(32) "000000006774f73c00000000474471e6"
Output for 5.4.35
string(32) "000000003b4a5fa400000000611c34cd" string(32) "000000003b4a5fa700000000611c34cd"
Output for 5.4.34
string(32) "000000002282e7fa0000000053b1d723" string(32) "000000002282e7f90000000053b1d723"
Output for 5.4.32
string(32) "000000005a556855000000000d853162" string(32) "000000005a556856000000000d853162"
Output for 5.4.31
string(32) "000000000d6f2c3500000000348e0b96" string(32) "000000000d6f2c3600000000348e0b96"
Output for 5.4.30
string(32) "00000000731e4cd70000000026f19d5c" string(32) "00000000731e4cd40000000026f19d5c"
Output for 5.4.29
string(32) "000000001d28548300000000623816e8" string(32) "000000001d28548000000000623816e8"
Output for 5.4.28
string(32) "000000005b0fdfb4000000004a77f79b" string(32) "000000005b0fdfb7000000004a77f79b"
Output for 5.4.27
string(32) "000000003aebc47d000000003d9994d6" string(32) "000000003aebc47e000000003d9994d6"
Output for 5.4.26
string(32) "0000000027e5ed42000000004556e87e" string(32) "0000000027e5ed41000000004556e87e"
Output for 5.4.25
string(32) "0000000011bb8e630000000044d0e700" string(32) "0000000011bb8e600000000044d0e700"
Output for 5.4.24
string(32) "000000004909ecba000000007b86abfd" string(32) "000000004909ecb9000000007b86abfd"
Output for 5.4.23
string(32) "0000000077d48a710000000004ce4247" string(32) "0000000077d48a720000000004ce4247"
Output for 5.4.22
string(32) "00000000633249080000000052155698" string(32) "000000006332490b0000000052155698"
Output for 5.4.21
string(32) "00000000290cf4bb0000000063dbba86" string(32) "00000000290cf4b80000000063dbba86"
Output for 5.4.20
string(32) "000000000a1d4935000000001ef491c7" string(32) "000000000a1d4936000000001ef491c7"
Output for 5.4.19
string(32) "000000001c098055000000007eb1b9a4" string(32) "000000001c098056000000007eb1b9a4"
Output for 5.4.18
string(32) "000000000693fafa00000000712d564d" string(32) "000000000693faf900000000712d564d"
Output for 5.4.17
string(32) "000000003207294c000000007cc6d047" string(32) "000000003207294f000000007cc6d047"
Output for 5.4.16
string(32) "0000000046ffa64d000000006e93284c" string(32) "0000000046ffa64e000000006e93284c"
Output for 5.4.15
string(32) "0000000017a9ee7d0000000023c8afad" string(32) "0000000017a9ee7e0000000023c8afad"
Output for 5.4.14
string(32) "000000006d1b333d0000000030a7f885" string(32) "000000006d1b333e0000000030a7f885"
Output for 5.4.13
string(32) "0000000049a96c38000000007918928b" string(32) "0000000049a96c3b000000007918928b"
Output for 5.4.12
string(32) "0000000047c81e54000000003fc79e6b" string(32) "0000000047c81e57000000003fc79e6b"
Output for 5.4.11
string(32) "00000000492520430000000045b66626" string(32) "00000000492520400000000045b66626"
Output for 5.4.10
string(32) "000000006702ebff000000001edbf22e" string(32) "000000006702ebfc000000001edbf22e"
Output for 5.4.9
string(32) "000000007283ba6800000000005662ef" string(32) "000000007283ba6b00000000005662ef"
Output for 5.4.8
string(32) "0000000058261c7e00000000208b4e68" string(32) "0000000058261c7d00000000208b4e68"
Output for 5.4.7
string(32) "00000000020da7f4000000003073c512" string(32) "00000000020da7f7000000003073c512"
Output for 5.4.6
string(32) "000000002a6957c80000000028e4dc42" string(32) "000000002a6957cb0000000028e4dc42"
Output for 5.4.5
string(32) "000000002239fc23000000002f302f5c" string(32) "000000002239fc20000000002f302f5c"
Output for 5.4.4
string(32) "000000005a1621a60000000052b70f1d" string(32) "000000005a1621a50000000052b70f1d"
Output for 5.4.3
string(32) "00000000168a0c4700000000394dd636" string(32) "00000000168a0c4400000000394dd636"
Output for 5.4.2
string(32) "000000002bbe92d0000000001af96e58" string(32) "000000002bbe92d3000000001af96e58"
Output for 5.4.1
string(32) "000000006ece1ea4000000003da780ee" string(32) "000000006ece1ea7000000003da780ee"
Output for 5.4.0
string(32) "000000002158dd14000000005a730cdc" string(32) "000000002158dd17000000005a730cdc"
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/1EnLG on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/1EnLG on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/1EnLG on line 3
Process exited with code 255.