3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo {}; var_dump(spl_object_hash(new Foo)); var_dump(spl_object_hash((object) [])); var_dump(spl_object_hash(new \stdClass));
based on aJMY5
Output for 7.2.0
string(32) "0000000014e519d9000000006f316cad" string(32) "0000000014e519d9000000006f316cad" string(32) "0000000014e519d9000000006f316cad"
Output for 7.1.10
string(32) "0000000050be4845000000005fe69da8" string(32) "0000000050be4845000000005fe69da8" string(32) "0000000050be4845000000005fe69da8"
Output for 7.1.7
string(32) "000000005c14f9f6000000003c575679" string(32) "000000005c14f9f6000000003c575679" string(32) "000000005c14f9f6000000003c575679"
Output for 7.1.6
string(32) "000000006ef77f62000000005af6e535" string(32) "000000006ef77f62000000005af6e535" string(32) "000000006ef77f62000000005af6e535"
Output for 7.1.5
string(32) "000000003e71d236000000007a349ebf" string(32) "000000003e71d236000000007a349ebf" string(32) "000000003e71d236000000007a349ebf"
Output for 7.1.0
string(32) "0000000056f448f60000000076a87361" string(32) "0000000056f448f60000000076a87361" string(32) "0000000056f448f60000000076a87361"
Output for 7.0.20
string(32) "000000000724f7760000000004610aa7" string(32) "000000000724f7760000000004610aa7" string(32) "000000000724f7760000000004610aa7"
Output for 7.0.6
string(32) "000000006c2cc78a00000000795a94c8" string(32) "000000006c2cc78a00000000795a94c8" string(32) "000000006c2cc78a00000000795a94c8"
Output for 7.0.5
string(32) "0000000032f49530000000007402910e" string(32) "0000000032f49530000000007402910e" string(32) "0000000032f49530000000007402910e"
Output for 7.0.4
string(32) "00000000569e0441000000003391888d" string(32) "00000000569e0441000000003391888d" string(32) "00000000569e0441000000003391888d"
Output for 7.0.3
string(32) "000000000d018aa9000000002dfc5a7d" string(32) "000000000d018aa9000000002dfc5a7d" string(32) "000000000d018aa9000000002dfc5a7d"
Output for 7.0.2
string(32) "0000000054fe77060000000032d1686a" string(32) "0000000054fe77060000000032d1686a" string(32) "0000000054fe77060000000032d1686a"
Output for 7.0.1
string(32) "000000003979eff00000000077642d2e" string(32) "000000003979eff00000000077642d2e" string(32) "000000003979eff00000000077642d2e"
Output for 7.0.0
string(32) "000000005440fae200000000619aac7b" string(32) "000000005440fae200000000619aac7b" string(32) "000000005440fae200000000619aac7b"
Output for 5.6.28
string(32) "0000000078e8d7ef0000000074bfaf21" string(32) "0000000078e8d7ef0000000074bfaf21" string(32) "0000000078e8d7ef0000000074bfaf21"
Output for 5.6.21
string(32) "0000000057904b89000000006b9c3bb0" string(32) "0000000057904b89000000006b9c3bb0" string(32) "0000000057904b89000000006b9c3bb0"
Output for 5.6.20
string(32) "0000000025ad5c04000000003a4260aa" string(32) "0000000025ad5c04000000003a4260aa" string(32) "0000000025ad5c04000000003a4260aa"
Output for 5.6.19
string(32) "000000001efb5615000000000c0bb96a" string(32) "000000001efb5615000000000c0bb96a" string(32) "000000001efb5615000000000c0bb96a"
Output for 5.6.18
string(32) "0000000078330a01000000001d386d02" string(32) "0000000078330a01000000001d386d02" string(32) "0000000078330a01000000001d386d02"
Output for 5.6.17
string(32) "0000000024bfeb4f0000000006c38541" string(32) "0000000024bfeb4f0000000006c38541" string(32) "0000000024bfeb4f0000000006c38541"
Output for 5.6.16
string(32) "00000000348b7392000000003a18f29c" string(32) "00000000348b7392000000003a18f29c" string(32) "00000000348b7392000000003a18f29c"
Output for 5.6.15
string(32) "0000000015eb56cb000000002922c6f1" string(32) "0000000015eb56cb000000002922c6f1" string(32) "0000000015eb56cb000000002922c6f1"
Output for 5.6.14
string(32) "000000002a29c28b000000005602032a" string(32) "000000002a29c28b000000005602032a" string(32) "000000002a29c28b000000005602032a"
Output for 5.6.13
string(32) "00000000595134cb0000000006ca805d" string(32) "00000000595134cb0000000006ca805d" string(32) "00000000595134cb0000000006ca805d"
Output for 5.6.12
string(32) "0000000046cac9dc00000000005bd381" string(32) "0000000046cac9dc00000000005bd381" string(32) "0000000046cac9dc00000000005bd381"
Output for 5.6.11
string(32) "0000000078aa0a24000000001d1a3fa7" string(32) "0000000078aa0a24000000001d1a3fa7" string(32) "0000000078aa0a24000000001d1a3fa7"
Output for 5.6.10
string(32) "000000000260657100000000342a3323" string(32) "000000000260657100000000342a3323" string(32) "000000000260657100000000342a3323"
Output for 5.6.9
string(32) "0000000034f13c70000000001d8c42a2" string(32) "0000000034f13c70000000001d8c42a2" string(32) "0000000034f13c70000000001d8c42a2"
Output for 5.6.8
string(32) "00000000174592cf000000000195893d" string(32) "00000000174592cf000000000195893d" string(32) "00000000174592cf000000000195893d"
Output for 5.5.35
string(32) "0000000058f6d59b000000004e9596fb" string(32) "0000000058f6d59b000000004e9596fb" string(32) "0000000058f6d59b000000004e9596fb"
Output for 5.5.34
string(32) "000000005864330500000000108d4f6a" string(32) "000000005864330500000000108d4f6a" string(32) "000000005864330500000000108d4f6a"
Output for 5.5.33
string(32) "000000003690509500000000419471fc" string(32) "000000003690509500000000419471fc" string(32) "000000003690509500000000419471fc"
Output for 5.5.32
string(32) "000000000e8c29c20000000055c1335a" string(32) "000000000e8c29c20000000055c1335a" string(32) "000000000e8c29c20000000055c1335a"
Output for 5.5.31
string(32) "000000004a7fe1fb0000000009d0264c" string(32) "000000004a7fe1fb0000000009d0264c" string(32) "000000004a7fe1fb0000000009d0264c"
Output for 5.5.30
string(32) "0000000058a4827f000000000c363041" string(32) "0000000058a4827f000000000c363041" string(32) "0000000058a4827f000000000c363041"
Output for 5.5.29
string(32) "000000005bc50611000000006929790b" string(32) "000000005bc50611000000006929790b" string(32) "000000005bc50611000000006929790b"
Output for 5.5.28
string(32) "000000005c0cbb55000000004192af50" string(32) "000000005c0cbb55000000004192af50" string(32) "000000005c0cbb55000000004192af50"
Output for 5.5.27
string(32) "000000006d66cb47000000002361c3b2" string(32) "000000006d66cb47000000002361c3b2" string(32) "000000006d66cb47000000002361c3b2"
Output for 5.5.26
string(32) "000000003b288db2000000003e8a1281" string(32) "000000003b288db2000000003e8a1281" string(32) "000000003b288db2000000003e8a1281"
Output for 5.5.25
string(32) "000000000631ad610000000071809199" string(32) "000000000631ad610000000071809199" string(32) "000000000631ad610000000071809199"
Output for 5.5.24
string(32) "00000000446883dd00000000367cb3ef" string(32) "00000000446883dd00000000367cb3ef" string(32) "00000000446883dd00000000367cb3ef"
Output for 5.4.45
string(32) "000000001703f7410000000037959f1c" string(32) "000000001703f7410000000037959f1c" string(32) "000000001703f7410000000037959f1c"
Output for 5.4.44
string(32) "00000000728068590000000072701e87" string(32) "00000000728068590000000072701e87" string(32) "00000000728068590000000072701e87"
Output for 5.4.43
string(32) "000000006403a2ba0000000078ba8251" string(32) "000000006403a2ba0000000078ba8251" string(32) "000000006403a2ba0000000078ba8251"
Output for 5.4.42
string(32) "000000000dcc395a000000006974317f" string(32) "000000000dcc395a000000006974317f" string(32) "000000000dcc395a000000006974317f"
Output for 5.4.41
string(32) "0000000016b6acbb000000000b11954a" string(32) "0000000016b6acbb000000000b11954a" string(32) "0000000016b6acbb000000000b11954a"
Output for 5.4.40
string(32) "000000003da05b92000000000cdddf90" string(32) "000000003da05b92000000000cdddf90" string(32) "000000003da05b92000000000cdddf90"
Output for 5.4.39
string(32) "0000000026be4b81000000004f450558" string(32) "0000000026be4b81000000004f450558" string(32) "0000000026be4b81000000004f450558"
Output for 5.4.38
string(32) "000000001c0d84bb00000000681b75a0" string(32) "000000001c0d84bb00000000681b75a0" string(32) "000000001c0d84bb00000000681b75a0"
Output for 5.4.37
string(32) "0000000027b1512400000000640683b2" string(32) "0000000027b1512400000000640683b2" string(32) "0000000027b1512400000000640683b2"
Output for 5.4.36
string(32) "0000000018c1265a000000001d188531" string(32) "0000000018c1265a000000001d188531" string(32) "0000000018c1265a000000001d188531"
Output for 5.4.35
string(32) "000000005c32a0ea0000000008d5b0ac" string(32) "000000005c32a0ea0000000008d5b0ac" string(32) "000000005c32a0ea0000000008d5b0ac"
Output for 5.4.34
string(32) "00000000685e429f000000000c9eb159" string(32) "00000000685e429f000000000c9eb159" string(32) "00000000685e429f000000000c9eb159"
Output for 5.4.32
string(32) "0000000069eb19c40000000015a09821" string(32) "0000000069eb19c40000000015a09821" string(32) "0000000069eb19c40000000015a09821"
Output for 5.4.31
string(32) "00000000495d3196000000005fa21fc2" string(32) "00000000495d3196000000005fa21fc2" string(32) "00000000495d3196000000005fa21fc2"
Output for 5.4.30
string(32) "000000001567e898000000006fc5a6d5" string(32) "000000001567e898000000006fc5a6d5" string(32) "000000001567e898000000006fc5a6d5"
Output for 5.4.29
string(32) "00000000682ae8930000000078754f57" string(32) "00000000682ae8930000000078754f57" string(32) "00000000682ae8930000000078754f57"
Output for 5.4.28
string(32) "000000003c8dcc36000000007074eaac" string(32) "000000003c8dcc36000000007074eaac" string(32) "000000003c8dcc36000000007074eaac"
Output for 5.4.27
string(32) "000000006a16a7510000000060dcf151" string(32) "000000006a16a7510000000060dcf151" string(32) "000000006a16a7510000000060dcf151"
Output for 5.4.26
string(32) "000000005fdbed6a0000000067d423b9" string(32) "000000005fdbed6a0000000067d423b9" string(32) "000000005fdbed6a0000000067d423b9"
Output for 5.4.25
string(32) "000000006fd5ae770000000022ec8b50" string(32) "000000006fd5ae770000000022ec8b50" string(32) "000000006fd5ae770000000022ec8b50"
Output for 5.4.24
string(32) "000000005241e653000000002ff6e7a5" string(32) "000000005241e653000000002ff6e7a5" string(32) "000000005241e653000000002ff6e7a5"
Output for 5.4.23
string(32) "000000006d7bb2990000000009619cec" string(32) "000000006d7bb2990000000009619cec" string(32) "000000006d7bb2990000000009619cec"
Output for 5.4.22
string(32) "0000000071a9a94f00000000037e1969" string(32) "0000000071a9a94f00000000037e1969" string(32) "0000000071a9a94f00000000037e1969"
Output for 5.4.21
string(32) "000000001a0de5d50000000038eaa3f6" string(32) "000000001a0de5d50000000038eaa3f6" string(32) "000000001a0de5d50000000038eaa3f6"
Output for 5.4.20
string(32) "000000004202db0f0000000041f52fd2" string(32) "000000004202db0f0000000041f52fd2" string(32) "000000004202db0f0000000041f52fd2"
Output for 5.4.19
string(32) "000000005d6bc55e000000002ed2860c" string(32) "000000005d6bc55e000000002ed2860c" string(32) "000000005d6bc55e000000002ed2860c"
Output for 5.4.18
string(32) "000000000be87f59000000000d8ebb74" string(32) "000000000be87f59000000000d8ebb74" string(32) "000000000be87f59000000000d8ebb74"
Output for 5.4.17
string(32) "0000000068ddd597000000007cf9509d" string(32) "0000000068ddd597000000007cf9509d" string(32) "0000000068ddd597000000007cf9509d"
Output for 5.4.16
string(32) "000000004c3f8014000000004da6f494" string(32) "000000004c3f8014000000004da6f494" string(32) "000000004c3f8014000000004da6f494"
Output for 5.4.15
string(32) "0000000018a30fae000000006121ae8a" string(32) "0000000018a30fae000000006121ae8a" string(32) "0000000018a30fae000000006121ae8a"
Output for 5.4.14
string(32) "0000000058d8be67000000007d03e89d" string(32) "0000000058d8be67000000007d03e89d" string(32) "0000000058d8be67000000007d03e89d"
Output for 5.4.13
string(32) "000000006c6c88bd0000000071f1d926" string(32) "000000006c6c88bd0000000071f1d926" string(32) "000000006c6c88bd0000000071f1d926"
Output for 5.4.12
string(32) "000000003240327f0000000007def8e8" string(32) "000000003240327f0000000007def8e8" string(32) "000000003240327f0000000007def8e8"
Output for 5.4.11
string(32) "000000003e40f168000000001002194c" string(32) "000000003e40f168000000001002194c" string(32) "000000003e40f168000000001002194c"
Output for 5.4.10
string(32) "00000000462e2899000000007e51c1f9" string(32) "00000000462e2899000000007e51c1f9" string(32) "00000000462e2899000000007e51c1f9"
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/fnsaD on line 6
Process exited with code 255.