3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo() { return new stdClass; } $foo1 = foo(); $foo2 = foo(); var_dump( spl_object_hash(foo()), spl_object_hash(foo()) );
Output for 7.1.0
string(32) "0000000036f6b6b60000000068c546a6" string(32) "0000000036f6b6b60000000068c546a6"
Output for 7.0.14
string(32) "0000000027e046750000000058d8aefd" string(32) "0000000027e046750000000058d8aefd"
Output for 7.0.12
string(32) "000000004e0bf4840000000026540e39" string(32) "000000004e0bf4840000000026540e39"
Output for 7.0.6
string(32) "000000002a35ba4900000000238ab02b" string(32) "000000002a35ba4900000000238ab02b"
Output for 7.0.5
string(32) "0000000048704fb200000000589db33a" string(32) "0000000048704fb200000000589db33a"
Output for 7.0.4
string(32) "00000000071e174d000000000c05dbe7" string(32) "00000000071e174d000000000c05dbe7"
Output for 7.0.3
string(32) "000000001270d1b9000000007b60a7e5" string(32) "000000001270d1b9000000007b60a7e5"
Output for 7.0.2
string(32) "0000000018467f1f000000004665a2e6" string(32) "0000000018467f1f000000004665a2e6"
Output for 7.0.1
string(32) "00000000194d747a000000006d05b76c" string(32) "00000000194d747a000000006d05b76c"
Output for 7.0.0
string(32) "000000007ef35abb00000000608704f6" string(32) "000000007ef35abb00000000608704f6"
Output for hhvm-3.12.0
string(32) "0000000000000000fdbfa09a90fcfb0c" string(32) "0000000000000000fdbfa09a90fcfb0c"
Output for hhvm-3.10.0
string(32) "0000000000000000eeeb8048eff81fce" string(32) "0000000000000000eeeb8048eff81fce"
Output for 5.6.28
string(32) "000000002ab17d390000000079d4a3ab" string(32) "000000002ab17d390000000079d4a3ab"
Output for 5.6.21
string(32) "000000000c412a10000000006b818915" string(32) "000000000c412a10000000006b818915"
Output for 5.6.20
string(32) "0000000017f6ec4b000000007585c13c" string(32) "0000000017f6ec4b000000007585c13c"
Output for 5.6.19
string(32) "000000006d11f28b0000000028461f59" string(32) "000000006d11f28b0000000028461f59"
Output for 5.6.18
string(32) "0000000037577f7e000000002b8e2abf" string(32) "0000000037577f7e000000002b8e2abf"
Output for 5.6.17
string(32) "0000000048c7a83400000000757447ae" string(32) "0000000048c7a83400000000757447ae"
Output for 5.6.16
string(32) "000000000238d35e00000000339803dc" string(32) "000000000238d35e00000000339803dc"
Output for 5.6.15
string(32) "000000006eabfabe000000004b7050e7" string(32) "000000006eabfabe000000004b7050e7"
Output for 5.6.14
string(32) "00000000502fec7b0000000002f10759" string(32) "00000000502fec7b0000000002f10759"
Output for 5.6.13
string(32) "0000000010ec4cfa000000006d96f7bd" string(32) "0000000010ec4cfa000000006d96f7bd"
Output for 5.6.12
string(32) "000000002b74fd83000000000a189fb9" string(32) "000000002b74fd83000000000a189fb9"
Output for 5.6.11
string(32) "000000006a0a37e00000000013cbbb91" string(32) "000000006a0a37e00000000013cbbb91"
Output for 5.6.10
string(32) "000000000c4ba1ea0000000008f1d862" string(32) "000000000c4ba1ea0000000008f1d862"
Output for 5.6.9
string(32) "00000000387c249f00000000183c156b" string(32) "00000000387c249f00000000183c156b"
Output for 5.6.8
string(32) "0000000064f21e21000000002d67aca8" string(32) "0000000064f21e21000000002d67aca8"
Output for 5.6.7
string(32) "0000000013c685170000000073d5520b" string(32) "0000000013c685170000000073d5520b"
Output for 5.6.6
string(32) "00000000171ce722000000003d9faefd" string(32) "00000000171ce722000000003d9faefd"
Output for 5.6.5
string(32) "00000000657a10bd000000003a6c1b91" string(32) "00000000657a10bd000000003a6c1b91"
Output for 5.6.4
string(32) "000000004be19e81000000005e30a501" string(32) "000000004be19e81000000005e30a501"
Output for 5.6.3
string(32) "000000007cfcc4df000000004d70ee23" string(32) "000000007cfcc4df000000004d70ee23"
Output for 5.6.2
string(32) "00000000222ffc88000000004e587fd2" string(32) "00000000222ffc88000000004e587fd2"
Output for 5.6.1
string(32) "00000000745fe6fc0000000035691a69" string(32) "00000000745fe6fc0000000035691a69"
Output for 5.6.0
string(32) "000000000d080059000000005525e700" string(32) "000000000d080059000000005525e700"
Output for 5.5.35
string(32) "000000002c3d7b5200000000277c9ff9" string(32) "000000002c3d7b5200000000277c9ff9"
Output for 5.5.34
string(32) "0000000067969153000000007c038fd2" string(32) "0000000067969153000000007c038fd2"
Output for 5.5.33
string(32) "000000000da7f5d10000000066be868d" string(32) "000000000da7f5d10000000066be868d"
Output for 5.5.32
string(32) "000000000406d50f000000003bce01a8" string(32) "000000000406d50f000000003bce01a8"
Output for 5.5.31
string(32) "00000000020e1d99000000006f77f4de" string(32) "00000000020e1d99000000006f77f4de"
Output for 5.5.30
string(32) "000000004b7a3929000000004c5cd7c7" string(32) "000000004b7a3929000000004c5cd7c7"
Output for 5.5.29
string(32) "0000000073edae3e000000006a0c6b11" string(32) "0000000073edae3e000000006a0c6b11"
Output for 5.5.28
string(32) "000000001b8b44cc000000000709416d" string(32) "000000001b8b44cc000000000709416d"
Output for 5.5.27
string(32) "0000000057709f50000000004a786b5c" string(32) "0000000057709f50000000004a786b5c"
Output for 5.5.26
string(32) "0000000044305caf000000004732882d" string(32) "0000000044305caf000000004732882d"
Output for 5.5.25
string(32) "000000003e51ca9c0000000002374308" string(32) "000000003e51ca9c0000000002374308"
Output for 5.5.24
string(32) "00000000052fab3c000000002f42cd10" string(32) "00000000052fab3c000000002f42cd10"
Output for 5.5.23
string(32) "0000000037db0b16000000001897a074" string(32) "0000000037db0b16000000001897a074"
Output for 5.5.22
string(32) "00000000279c2ca40000000071ac18b5" string(32) "00000000279c2ca40000000071ac18b5"
Output for 5.5.21
string(32) "000000000275ccc300000000437d43ad" string(32) "000000000275ccc300000000437d43ad"
Output for 5.5.20
string(32) "000000003d4202da0000000027d02c17" string(32) "000000003d4202da0000000027d02c17"
Output for 5.5.19
string(32) "0000000050ada41100000000600b8be2" string(32) "0000000050ada41100000000600b8be2"
Output for 5.5.18
string(32) "0000000074b6a2ac000000001dc783b5" string(32) "0000000074b6a2ac000000001dc783b5"
Output for 5.5.16
string(32) "000000005e4816740000000036226afd" string(32) "000000005e4816740000000036226afd"
Output for 5.5.15
string(32) "0000000024a8ee20000000006a52090c" string(32) "0000000024a8ee20000000006a52090c"
Output for 5.5.14
string(32) "000000001ecfe68900000000078e97c2" string(32) "000000001ecfe68900000000078e97c2"
Output for 5.5.13
string(32) "000000004821de36000000004ca314be" string(32) "000000004821de36000000004ca314be"
Output for 5.5.12
string(32) "000000004b82098400000000615ad257" string(32) "000000004b82098400000000615ad257"
Output for 5.5.11
string(32) "000000002567e65900000000344ee9d5" string(32) "000000002567e65900000000344ee9d5"
Output for 5.5.10
string(32) "0000000008fe7d5f0000000032ed6502" string(32) "0000000008fe7d5f0000000032ed6502"
Output for 5.5.9
string(32) "0000000034a73c5800000000296b3b3b" string(32) "0000000034a73c5800000000296b3b3b"
Output for 5.5.8
string(32) "00000000349ffc8600000000449761d1" string(32) "00000000349ffc8600000000449761d1"
Output for 5.5.7
string(32) "000000004796255a00000000659cc078" string(32) "000000004796255a00000000659cc078"
Output for 5.5.6
string(32) "0000000075f2b7540000000021baf35b" string(32) "0000000075f2b7540000000021baf35b"
Output for 5.5.5
string(32) "000000004a5e7876000000005ad76f2c" string(32) "000000004a5e7876000000005ad76f2c"
Output for 5.5.4
string(32) "000000001102464e000000001bccc0cc" string(32) "000000001102464e000000001bccc0cc"
Output for 5.5.3
string(32) "0000000008a756d9000000001e494c76" string(32) "0000000008a756d9000000001e494c76"
Output for 5.5.2
string(32) "0000000077cb8dc00000000057c07ad7" string(32) "0000000077cb8dc00000000057c07ad7"
Output for 5.5.1
string(32) "000000003121e8c6000000003fa5973f" string(32) "000000003121e8c6000000003fa5973f"
Output for 5.5.0
string(32) "000000003b632e020000000046efee41" string(32) "000000003b632e020000000046efee41"
Output for 5.4.45
string(32) "00000000356707810000000006ff7f5b" string(32) "00000000356707810000000006ff7f5b"
Output for 5.4.44
string(32) "000000005929c0530000000041a4b22d" string(32) "000000005929c0530000000041a4b22d"
Output for 5.4.43
string(32) "0000000025d800c50000000031cb950b" string(32) "0000000025d800c50000000031cb950b"
Output for 5.4.42
string(32) "000000007ea67c71000000006f1cd515" string(32) "000000007ea67c71000000006f1cd515"
Output for 5.4.41
string(32) "0000000003d31201000000006dc48a98" string(32) "0000000003d31201000000006dc48a98"
Output for 5.4.40
string(32) "000000004fac97ad00000000729c2f3c" string(32) "000000004fac97ad00000000729c2f3c"
Output for 5.4.39
string(32) "000000004a1ca71800000000698a1276" string(32) "000000004a1ca71800000000698a1276"
Output for 5.4.38
string(32) "000000001763cdf000000000284cc169" string(32) "000000001763cdf000000000284cc169"
Output for 5.4.37
string(32) "000000002203f950000000005db8dd6c" string(32) "000000002203f950000000005db8dd6c"
Output for 5.4.36
string(32) "00000000198f719f0000000061c82baa" string(32) "00000000198f719f0000000061c82baa"
Output for 5.4.35
string(32) "000000001bab7f73000000007420cafd" string(32) "000000001bab7f73000000007420cafd"
Output for 5.4.34
string(32) "000000002bd8dd1200000000794937f6" string(32) "000000002bd8dd1200000000794937f6"
Output for 5.4.32
string(32) "000000000649ba51000000005a83e9ba" string(32) "000000000649ba51000000005a83e9ba"
Output for 5.4.31
string(32) "00000000380ad95b000000005e273321" string(32) "00000000380ad95b000000005e273321"
Output for 5.4.30
string(32) "000000004ec1acf300000000385e82b1" string(32) "000000004ec1acf300000000385e82b1"
Output for 5.4.29
string(32) "00000000458d64d7000000002fe5c26d" string(32) "00000000458d64d7000000002fe5c26d"
Output for 5.4.28
string(32) "0000000022a12d94000000007b551c8c" string(32) "0000000022a12d94000000007b551c8c"
Output for 5.4.27
string(32) "000000004a2223f6000000005f5249ec" string(32) "000000004a2223f6000000005f5249ec"
Output for 5.4.26
string(32) "0000000003bc1a86000000002c6df6e4" string(32) "0000000003bc1a86000000002c6df6e4"
Output for 5.4.25
string(32) "0000000029e862f20000000054892847" string(32) "0000000029e862f20000000054892847"
Output for 5.4.24
string(32) "0000000071ff1c31000000005772c219" string(32) "0000000071ff1c31000000005772c219"
Output for 5.4.23
string(32) "0000000005adfdd1000000001db43bad" string(32) "0000000005adfdd1000000001db43bad"
Output for 5.4.22
string(32) "000000005bceea91000000005e6bddfc" string(32) "000000005bceea91000000005e6bddfc"
Output for 5.4.21
string(32) "00000000494a09040000000024cbd213" string(32) "00000000494a09040000000024cbd213"
Output for 5.4.20
string(32) "000000005a413ce6000000003cbff05f" string(32) "000000005a413ce6000000003cbff05f"
Output for 5.4.19
string(32) "000000003668023800000000714210fa" string(32) "000000003668023800000000714210fa"
Output for 5.4.18
string(32) "00000000752608c9000000003263e5b2" string(32) "00000000752608c9000000003263e5b2"
Output for 5.4.17
string(32) "000000005ad078df00000000361cb70d" string(32) "000000005ad078df00000000361cb70d"
Output for 5.4.16
string(32) "000000007c4020730000000077b867d2" string(32) "000000007c4020730000000077b867d2"
Output for 5.4.15
string(32) "00000000227fb0030000000043a4eb10" string(32) "00000000227fb0030000000043a4eb10"
Output for 5.4.14
string(32) "0000000066bb7f3900000000377f33a1" string(32) "0000000066bb7f3900000000377f33a1"
Output for 5.4.13
string(32) "000000000230893f000000003b23240f" string(32) "000000000230893f000000003b23240f"
Output for 5.4.12
string(32) "0000000017ffea05000000006292ba8a" string(32) "0000000017ffea05000000006292ba8a"
Output for 5.4.11
string(32) "000000006103e141000000001cdd5d57" string(32) "000000006103e141000000001cdd5d57"
Output for 5.4.10
string(32) "00000000276bfa3700000000125a0cc2" string(32) "00000000276bfa3700000000125a0cc2"
Output for 5.4.9
string(32) "000000006db2e8ab000000005d5ef576" string(32) "000000006db2e8ab000000005d5ef576"
Output for 5.4.8
string(32) "0000000073a2b111000000002c85bf3c" string(32) "0000000073a2b111000000002c85bf3c"
Output for 5.4.7
string(32) "00000000739689f4000000007d619a54" string(32) "00000000739689f4000000007d619a54"
Output for 5.4.6
string(32) "000000002d7fba3c0000000042d68529" string(32) "000000002d7fba3c0000000042d68529"
Output for 5.4.5
string(32) "00000000026d83d000000000269c42d4" string(32) "00000000026d83d000000000269c42d4"
Output for 5.4.4
string(32) "000000005482f92f00000000544e9da6" string(32) "000000005482f92f00000000544e9da6"
Output for 5.4.3
string(32) "00000000626e3bc900000000344350e3" string(32) "00000000626e3bc900000000344350e3"
Output for 5.4.2
string(32) "0000000072fa2ac8000000002069623b" string(32) "0000000072fa2ac8000000002069623b"
Output for 5.4.1
string(32) "0000000036bcc6ed0000000003d78dc0" string(32) "0000000036bcc6ed0000000003d78dc0"
Output for 5.4.0
string(32) "0000000016f4a04a00000000186c5b20" string(32) "0000000016f4a04a00000000186c5b20"
Output for 5.3.29
string(32) "0000000028712b7200000000643b27c1" string(32) "0000000028712b7200000000643b27c1"
Output for 5.3.28
string(32) "00000000510e52ab000000004c14c4a9" string(32) "00000000510e52ab000000004c14c4a9"
Output for 5.3.27
string(32) "000000003e0f7b790000000009fc249a" string(32) "000000003e0f7b790000000009fc249a"
Output for 5.3.26
string(32) "0000000001a9ac6c000000007ef29231" string(32) "0000000001a9ac6c000000007ef29231"
Output for 5.3.25
string(32) "00000000466f4fb8000000002ef20dc2" string(32) "00000000466f4fb8000000002ef20dc2"
Output for 5.3.24
string(32) "0000000020a79b9c0000000026d65ccc" string(32) "0000000020a79b9c0000000026d65ccc"
Output for 5.3.23
string(32) "000000006a1236d5000000006fe6c49c" string(32) "000000006a1236d5000000006fe6c49c"
Output for 5.3.22
string(32) "0000000062de87850000000059094ab4" string(32) "0000000062de87850000000059094ab4"
Output for 5.3.21
string(32) "0000000029947dd400000000094efe70" string(32) "0000000029947dd400000000094efe70"
Output for 5.3.20
string(32) "000000007f6df9f800000000044571ab" string(32) "000000007f6df9f800000000044571ab"
Output for 5.3.19
string(32) "000000005eb267530000000075817625" string(32) "000000005eb267530000000075817625"
Output for 5.3.18
string(32) "0000000019a4b89e000000006f9e0a9d" string(32) "0000000019a4b89e000000006f9e0a9d"
Output for 5.3.17
string(32) "0000000041e1a8a20000000053dce650" string(32) "0000000041e1a8a20000000053dce650"
Output for 5.3.16
string(32) "000000001c4721720000000005424fc5" string(32) "000000001c4721720000000005424fc5"
Output for 5.3.15
string(32) "000000006b7d2fca00000000151a9da3" string(32) "000000006b7d2fca00000000151a9da3"
Output for 5.3.14
string(32) "0000000014213e2e000000007fc903f7" string(32) "0000000014213e2e000000007fc903f7"
Output for 5.3.13
string(32) "0000000047f3e5740000000037bbff83" string(32) "0000000047f3e5740000000037bbff83"
Output for 5.3.12
string(32) "0000000017a0d2b80000000009770498" string(32) "0000000017a0d2b80000000009770498"
Output for 5.3.11
string(32) "000000002dc90354000000003c832b46" string(32) "000000002dc90354000000003c832b46"
Output for 5.3.10
string(32) "000000000fe3477a000000005bb194ca" string(32) "000000000fe3477a000000005bb194ca"
Output for 5.3.9
string(32) "0000000016b856d40000000009397ff9" string(32) "0000000016b856d40000000009397ff9"
Output for 5.3.8
string(32) "0000000060e8f27f0000000062510c3c" string(32) "0000000060e8f27f0000000062510c3c"
Output for 5.3.7
string(32) "0000000033d8c97c000000001cff90da" string(32) "0000000033d8c97c000000001cff90da"
Output for 5.3.6
string(32) "000000000c8cb19b000000000967915f" string(32) "000000000c8cb19b000000000967915f"
Output for 5.3.5
string(32) "000000003e219240000000007001ab08" string(32) "000000003e219240000000007001ab08"
Output for 5.3.4
string(32) "000000004f7d2b7600000000577d4157" string(32) "000000004f7d2b7600000000577d4157"
Output for 5.3.3
string(32) "0000000020618f4900000000279883ac" string(32) "0000000020618f4900000000279883ac"
Output for 5.3.2
string(32) "000000006d771e66000000002b94d698" string(32) "000000006d771e66000000002b94d698"
Output for 5.3.1
string(32) "00000000625ce301000000005f17ee6c" string(32) "00000000625ce301000000005f17ee6c"
Output for 5.3.0
string(32) "0000000009be1cce00000000129b3937" string(32) "0000000009be1cce00000000129b3937"
Output for 5.2.17
string(32) "753f6858b98d2308ae89d51ced1372b0" string(32) "753f6858b98d2308ae89d51ced1372b0"
Output for 5.2.15 - 5.2.16
string(32) "ba1405ae7602a434876f78b935c2d915" string(32) "ba1405ae7602a434876f78b935c2d915"
Output for 5.2.14
string(32) "375d5a4eb9d78a5e7fea472a4b61c7ac" string(32) "375d5a4eb9d78a5e7fea472a4b61c7ac"
Output for 5.2.13
string(32) "cb117d8c74292b4458a0d9f610704534" string(32) "cb117d8c74292b4458a0d9f610704534"
Output for 5.2.12
string(32) "883be5774f72f02f058abf69def6fa15" string(32) "883be5774f72f02f058abf69def6fa15"
Output for 5.2.9, 5.2.11
string(32) "c21fbad51346bd768acb34def35da402" string(32) "c21fbad51346bd768acb34def35da402"
Output for 5.2.10
string(32) "5047768167fa31f6d152d680811bbea2" string(32) "5047768167fa31f6d152d680811bbea2"
Output for 5.2.7 - 5.2.8
string(32) "738a9c7b59222e2a6ee25ff834b69ff2" string(32) "738a9c7b59222e2a6ee25ff834b69ff2"
Output for 5.2.6
string(32) "41fea70a0869dc5f3d6c821bcc445dc7" string(32) "41fea70a0869dc5f3d6c821bcc445dc7"
Output for 5.2.5
string(32) "ecb96155153d6426c5b06f1f4a2c65fd" string(32) "ecb96155153d6426c5b06f1f4a2c65fd"
Output for 5.2.4
string(32) "fd3d7c7cbbfb5b25750dce98613b0e4c" string(32) "fd3d7c7cbbfb5b25750dce98613b0e4c"
Output for 5.2.3
string(32) "be25c170a894bf386cf5ab9ffea6d38f" string(32) "be25c170a894bf386cf5ab9ffea6d38f"
Output for 5.2.2
string(32) "3ef1ffee27eda45c1c55d200294f23df" string(32) "3ef1ffee27eda45c1c55d200294f23df"
Output for 5.2.1
string(32) "c29b72906b526027772e347269d2e3ef" string(32) "c29b72906b526027772e347269d2e3ef"
Output for 5.2.0
string(32) "57924fe0a71764fc00e4c201249c9bd9" string(32) "57924fe0a71764fc00e4c201249c9bd9"
Output for 5.0.0 - 5.1.6
<br /> <b>Fatal error</b>: Call to undefined function spl_object_hash() in <b>/in/1naeQ</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: spl_object_hash() in <b>/in/1naeQ</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: spl_object_hash() in <b>/in/1naeQ</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: spl_object_hash() in <b>/in/1naeQ</b> on line <b>13</b><br />