3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test {} function foo() { return new Test; } $foo1 = foo(); $foo2 = foo(); echo spl_object_hash(foo()); echo PHP_EOL; echo spl_object_hash(foo()); /*var_dump( spl_object_hash($foo1), spl_object_hash($foo2), spl_object_hash(foo()), spl_object_hash(foo()) );*/
Output for 7.1.0
000000001b0c8ac20000000048c38fbf 000000001b0c8ac20000000048c38fbf
Output for 7.0.14
0000000008fa6811000000005eba6e5c 0000000008fa6811000000005eba6e5c
Output for 7.0.6
0000000030039fcc0000000070812fce 0000000030039fcc0000000070812fce
Output for 7.0.5
0000000004b415ee000000001ba61ad4 0000000004b415ee000000001ba61ad4
Output for 7.0.4
00000000417c239c000000000a8afa1b 00000000417c239c000000000a8afa1b
Output for 7.0.3
00000000383bd00e000000002af87812 00000000383bd00e000000002af87812
Output for 7.0.2
0000000055e6ef230000000053c45f2b 0000000055e6ef230000000053c45f2b
Output for 7.0.1
000000005767d7df0000000016c6e87c 000000005767d7df0000000016c6e87c
Output for 7.0.0
000000006e95992b000000006037e4dd 000000006e95992b000000006037e4dd
Output for hhvm-3.12.0
00000000000000007fff8272be97282c 00000000000000007fff8272be97282c
Output for hhvm-3.10.0
00000000000000007f5500f8788fb233 00000000000000007f5500f8788fb233
Output for 5.6.28
000000003c06b47600000000369d73b9 000000003c06b47600000000369d73b9
Output for 5.6.21
00000000622c571f000000001b00bc07 00000000622c571f000000001b00bc07
Output for 5.6.20
00000000364d6017000000003519c716 00000000364d6017000000003519c716
Output for 5.6.19
0000000034a2e620000000002ed82f74 0000000034a2e620000000002ed82f74
Output for 5.6.18
00000000436b54ef000000002098f28c 00000000436b54ef000000002098f28c
Output for 5.6.17
00000000271989ec000000007c8c5a6e 00000000271989ec000000007c8c5a6e
Output for 5.6.16
000000000fffb92100000000659084cb 000000000fffb92100000000659084cb
Output for 5.6.15
000000000d0fb4dd00000000511e021a 000000000d0fb4dd00000000511e021a
Output for 5.6.14
00000000403943f4000000005706c020 00000000403943f4000000005706c020
Output for 5.6.13
0000000058632c0f0000000061bba7ef 0000000058632c0f0000000061bba7ef
Output for 5.6.12
0000000034a45c0e0000000059abee9a 0000000034a45c0e0000000059abee9a
Output for 5.6.11
0000000059950ce80000000059c7373a 0000000059950ce80000000059c7373a
Output for 5.6.10
000000005730d9300000000051115ca4 000000005730d9300000000051115ca4
Output for 5.6.9
0000000045d60140000000000cfc6ac7 0000000045d60140000000000cfc6ac7
Output for 5.6.8
000000002c966e6b00000000141327ff 000000002c966e6b00000000141327ff
Output for 5.6.7
000000004fdd4fec0000000016c702f4 000000004fdd4fec0000000016c702f4
Output for 5.6.6
000000004673bc7f0000000058aa7b34 000000004673bc7f0000000058aa7b34
Output for 5.6.5
00000000471954320000000038bc0993 00000000471954320000000038bc0993
Output for 5.6.4
00000000776c94ef0000000027eb1b00 00000000776c94ef0000000027eb1b00
Output for 5.6.3
0000000036eb14e300000000474e18e6 0000000036eb14e300000000474e18e6
Output for 5.6.2
0000000017c971910000000004f01175 0000000017c971910000000004f01175
Output for 5.6.1
000000003f283ac0000000000f0fc447 000000003f283ac0000000000f0fc447
Output for 5.6.0
000000002742a0270000000068894431 000000002742a0270000000068894431
Output for 5.5.35
000000002f560b1c000000004fc51223 000000002f560b1c000000004fc51223
Output for 5.5.34
000000000b9e1c74000000004c677450 000000000b9e1c74000000004c677450
Output for 5.5.33
000000002e93a3350000000028c40b63 000000002e93a3350000000028c40b63
Output for 5.5.32
0000000023d31f00000000004dcb9748 0000000023d31f00000000004dcb9748
Output for 5.5.31
0000000031007b0700000000354e6964 0000000031007b0700000000354e6964
Output for 5.5.30
000000002ae3de7f00000000591a0df0 000000002ae3de7f00000000591a0df0
Output for 5.5.29
000000006b27dfcc000000002a0e7e91 000000006b27dfcc000000002a0e7e91
Output for 5.5.28
0000000036600c82000000004e62c30b 0000000036600c82000000004e62c30b
Output for 5.5.27
00000000430a0b11000000001daaac60 00000000430a0b11000000001daaac60
Output for 5.5.26
0000000070095350000000005cba8451 0000000070095350000000005cba8451
Output for 5.5.25
00000000437105a4000000006b650043 00000000437105a4000000006b650043
Output for 5.5.24
000000004d9a91380000000061c0f254 000000004d9a91380000000061c0f254
Output for 5.5.23
000000003db9326f000000001b055a22 000000003db9326f000000001b055a22
Output for 5.5.22
00000000113911e8000000001ebc1a74 00000000113911e8000000001ebc1a74
Output for 5.5.21
000000002ab228b4000000007a608f94 000000002ab228b4000000007a608f94
Output for 5.5.20
000000001f3bec8e000000001a337e7a 000000001f3bec8e000000001a337e7a
Output for 5.5.19
0000000002389247000000004315ce66 0000000002389247000000004315ce66
Output for 5.5.18
000000007d1b75cb00000000135e1cad 000000007d1b75cb00000000135e1cad
Output for 5.5.16
000000002773b5ba0000000062688d83 000000002773b5ba0000000062688d83
Output for 5.5.15
000000001bad6c44000000005fd036ea 000000001bad6c44000000005fd036ea
Output for 5.5.14
00000000536649bf0000000072dbeb31 00000000536649bf0000000072dbeb31
Output for 5.5.13
0000000002d699b40000000069fe8918 0000000002d699b40000000069fe8918
Output for 5.5.12
000000003df0692a00000000419aaffd 000000003df0692a00000000419aaffd
Output for 5.5.11
000000002f1bb78d000000006697abfa 000000002f1bb78d000000006697abfa
Output for 5.5.10
000000006ffb55ac00000000648387c3 000000006ffb55ac00000000648387c3
Output for 5.5.9
00000000080481cd00000000785b738e 00000000080481cd00000000785b738e
Output for 5.5.8
000000006fb16172000000007029eef9 000000006fb16172000000007029eef9
Output for 5.5.7
0000000006578198000000005000bd7d 0000000006578198000000005000bd7d
Output for 5.5.6
000000001d6c662f0000000030cfff4c 000000001d6c662f0000000030cfff4c
Output for 5.5.5
000000003c175b750000000037548b03 000000003c175b750000000037548b03
Output for 5.5.4
00000000640c5a3f000000000df2ff8b 00000000640c5a3f000000000df2ff8b
Output for 5.5.3
000000003ac05b050000000005ac6a7c 000000003ac05b050000000005ac6a7c
Output for 5.5.2
0000000055bdc18f00000000097bdfa7 0000000055bdc18f00000000097bdfa7
Output for 5.5.1
000000002ff6279900000000334f683d 000000002ff6279900000000334f683d
Output for 5.5.0
000000001692f788000000003216d787 000000001692f788000000003216d787
Output for 5.4.45
000000000358e3a30000000012ac9d83 000000000358e3a30000000012ac9d83
Output for 5.4.44
0000000019e6b1fa000000000b708c68 0000000019e6b1fa000000000b708c68
Output for 5.4.43
00000000522717d300000000258225bc 00000000522717d300000000258225bc
Output for 5.4.42
000000001888b7e900000000032dfc47 000000001888b7e900000000032dfc47
Output for 5.4.41
00000000481ae59f0000000050621d89 00000000481ae59f0000000050621d89
Output for 5.4.40
00000000238a17e200000000222da113 00000000238a17e200000000222da113
Output for 5.4.39
0000000061c37d4a00000000287f4e8d 0000000061c37d4a00000000287f4e8d
Output for 5.4.38
00000000232bf347000000001243900f 00000000232bf347000000001243900f
Output for 5.4.37
000000007928860e0000000037386f90 000000007928860e0000000037386f90
Output for 5.4.36
00000000726286530000000007b60f11 00000000726286530000000007b60f11
Output for 5.4.35
000000006e873a490000000022be5baf 000000006e873a490000000022be5baf
Output for 5.4.34
000000003e28c1d90000000050889d31 000000003e28c1d90000000050889d31
Output for 5.4.32
0000000066489bb400000000205c5ba6 0000000066489bb400000000205c5ba6
Output for 5.4.31
0000000071e1ae01000000004c5961d7 0000000071e1ae01000000004c5961d7
Output for 5.4.30
0000000006ca1e05000000000f077147 0000000006ca1e05000000000f077147
Output for 5.4.29
00000000657ddb9d0000000032ff8334 00000000657ddb9d0000000032ff8334
Output for 5.4.28
0000000031bb20b8000000000693d506 0000000031bb20b8000000000693d506
Output for 5.4.27
000000007e802a680000000009826a81 000000007e802a680000000009826a81
Output for 5.4.26
0000000030da1ebc000000005710ab12 0000000030da1ebc000000005710ab12
Output for 5.4.25
00000000486e06cf000000005873bb8a 00000000486e06cf000000005873bb8a
Output for 5.4.24
000000003bb2f021000000000588f595 000000003bb2f021000000000588f595
Output for 5.4.23
000000002b567dec000000004eabdd43 000000002b567dec000000004eabdd43
Output for 5.4.22
000000000de93ebb00000000404f76e7 000000000de93ebb00000000404f76e7
Output for 5.4.21
000000004f3fe8010000000026905c21 000000004f3fe8010000000026905c21
Output for 5.4.20
00000000237a73ba000000006e4aa375 00000000237a73ba000000006e4aa375
Output for 5.4.19
0000000021e05dcc000000001c638070 0000000021e05dcc000000001c638070
Output for 5.4.18
000000004b107688000000002e3e225e 000000004b107688000000002e3e225e
Output for 5.4.17
0000000036cdd99700000000698f6b79 0000000036cdd99700000000698f6b79
Output for 5.4.16
000000006445cc70000000003548f1e3 000000006445cc70000000003548f1e3
Output for 5.4.15
0000000004cbf718000000004fd2563e 0000000004cbf718000000004fd2563e
Output for 5.4.14
000000003f789c940000000018b99126 000000003f789c940000000018b99126
Output for 5.4.13
0000000030396ad4000000006240cbeb 0000000030396ad4000000006240cbeb
Output for 5.4.12
00000000656c42af000000007de37bbe 00000000656c42af000000007de37bbe
Output for 5.4.11
0000000053418a5300000000619d49b9 0000000053418a5300000000619d49b9
Output for 5.4.10
0000000046baba7c0000000041521ab9 0000000046baba7c0000000041521ab9
Output for 5.4.9
000000007392f6fd0000000072f8098c 000000007392f6fd0000000072f8098c
Output for 5.4.8
0000000033b4b541000000006c463e10 0000000033b4b541000000006c463e10
Output for 5.4.7
0000000070974b45000000007fbf1eda 0000000070974b45000000007fbf1eda
Output for 5.4.6
0000000074cdc2030000000019e4e94c 0000000074cdc2030000000019e4e94c
Output for 5.4.5
000000000accff1a000000002193d9ca 000000000accff1a000000002193d9ca
Output for 5.4.4
00000000207ac215000000003be68ce9 00000000207ac215000000003be68ce9
Output for 5.4.3
000000001555d9f200000000014fa854 000000001555d9f200000000014fa854
Output for 5.4.2
0000000049ec8ca10000000078a4fe61 0000000049ec8ca10000000078a4fe61
Output for 5.4.1
000000004d61e48c000000003905be0e 000000004d61e48c000000003905be0e
Output for 5.4.0
000000005e4b61350000000036fb03ad 000000005e4b61350000000036fb03ad
Output for 5.3.29
0000000074634dec000000003db6f769 0000000074634dec000000003db6f769
Output for 5.3.28
0000000057ac1d2f00000000155d00e3 0000000057ac1d2f00000000155d00e3
Output for 5.3.27
00000000151f8451000000002bd04c68 00000000151f8451000000002bd04c68
Output for 5.3.26
0000000008850248000000007f0d1f19 0000000008850248000000007f0d1f19
Output for 5.3.25
0000000058e82bed000000000ec6b172 0000000058e82bed000000000ec6b172
Output for 5.3.24
00000000661dd86d0000000006e6161f 00000000661dd86d0000000006e6161f
Output for 5.3.23
000000005f912e3e0000000028a3c4b3 000000005f912e3e0000000028a3c4b3
Output for 5.3.22
00000000354bb13c000000006d56f7b3 00000000354bb13c000000006d56f7b3
Output for 5.3.21
0000000078a02721000000005422b016 0000000078a02721000000005422b016
Output for 5.3.20
00000000158feb24000000003b927f54 00000000158feb24000000003b927f54
Output for 5.3.19
000000007bb31a5e0000000028416463 000000007bb31a5e0000000028416463
Output for 5.3.18
00000000566c8436000000006a97fd24 00000000566c8436000000006a97fd24
Output for 5.3.17
0000000006b2461a000000004a661d85 0000000006b2461a000000004a661d85
Output for 5.3.16
00000000078df07000000000392e6261 00000000078df07000000000392e6261
Output for 5.3.15
000000002ee16a91000000005ec8c9d4 000000002ee16a91000000005ec8c9d4
Output for 5.3.14
0000000065e91bc60000000030290b7d 0000000065e91bc60000000030290b7d
Output for 5.3.13
000000001c63831f000000003a1c2434 000000001c63831f000000003a1c2434
Output for 5.3.12
0000000072b5e13c000000006abd093e 0000000072b5e13c000000006abd093e
Output for 5.3.11
000000002272ded1000000007df73e1d 000000002272ded1000000007df73e1d
Output for 5.3.10
0000000034b85826000000004a2617b7 0000000034b85826000000004a2617b7
Output for 5.3.9
00000000612ae95b000000003216aa20 00000000612ae95b000000003216aa20
Output for 5.3.8
000000004cefbd730000000037e1c1f6 000000004cefbd730000000037e1c1f6
Output for 5.3.7
0000000015166afd00000000263cd026 0000000015166afd00000000263cd026
Output for 5.3.6
000000002707496a0000000061a96dc9 000000002707496a0000000061a96dc9
Output for 5.3.5
0000000020e7213f000000001641c876 0000000020e7213f000000001641c876
Output for 5.3.4
000000003ef5bde80000000036a956b3 000000003ef5bde80000000036a956b3
Output for 5.3.3
0000000030ea8d500000000079a35b4d 0000000030ea8d500000000079a35b4d
Output for 5.3.2
0000000054b3c3250000000055aaa63e 0000000054b3c3250000000055aaa63e
Output for 5.3.1
000000004c4661660000000059d29352 000000004c4661660000000059d29352
Output for 5.3.0
000000004a1f5f73000000007e50c19f 000000004a1f5f73000000007e50c19f
Output for 5.2.17
753f6858b98d2308ae89d51ced1372b0 753f6858b98d2308ae89d51ced1372b0
Output for 5.2.15 - 5.2.16
ba1405ae7602a434876f78b935c2d915 ba1405ae7602a434876f78b935c2d915
Output for 5.2.14
375d5a4eb9d78a5e7fea472a4b61c7ac 375d5a4eb9d78a5e7fea472a4b61c7ac
Output for 5.2.13
cb117d8c74292b4458a0d9f610704534 cb117d8c74292b4458a0d9f610704534
Output for 5.2.12
883be5774f72f02f058abf69def6fa15 883be5774f72f02f058abf69def6fa15
Output for 5.2.9, 5.2.11
c21fbad51346bd768acb34def35da402 c21fbad51346bd768acb34def35da402
Output for 5.2.10
5047768167fa31f6d152d680811bbea2 5047768167fa31f6d152d680811bbea2
Output for 5.2.7 - 5.2.8
738a9c7b59222e2a6ee25ff834b69ff2 738a9c7b59222e2a6ee25ff834b69ff2
Output for 5.2.6
41fea70a0869dc5f3d6c821bcc445dc7 41fea70a0869dc5f3d6c821bcc445dc7
Output for 5.2.5
ecb96155153d6426c5b06f1f4a2c65fd ecb96155153d6426c5b06f1f4a2c65fd
Output for 5.2.4
fd3d7c7cbbfb5b25750dce98613b0e4c fd3d7c7cbbfb5b25750dce98613b0e4c
Output for 5.2.3
be25c170a894bf386cf5ab9ffea6d38f be25c170a894bf386cf5ab9ffea6d38f
Output for 5.2.2
3ef1ffee27eda45c1c55d200294f23df 3ef1ffee27eda45c1c55d200294f23df
Output for 5.2.1
c29b72906b526027772e347269d2e3ef c29b72906b526027772e347269d2e3ef
Output for 5.2.0
57924fe0a71764fc00e4c201249c9bd9 57924fe0a71764fc00e4c201249c9bd9
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function spl_object_hash() in /in/gHXHV on line 15
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_object_hash() in /in/gHXHV on line 15
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: spl_object_hash() in /in/gHXHV on line 15
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_object_hash() in /in/gHXHV on line 15