3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A {}; $a = new A; $b = new A; $c = $a; $b->t = 1; var_dump(spl_object_hash($a)); var_dump(spl_object_hash($b)); var_dump(spl_object_hash($c)); $aa = [$a, $b]; var_dump(in_array($c, $aa));
based on pA7Sh
Output for 7.2.0
string(32) "000000001f6560fe00000000615d6b44" string(32) "000000001f6560fd00000000615d6b44" string(32) "000000001f6560fe00000000615d6b44" bool(true)
Output for 7.1.10
string(32) "0000000000783d6a00000000487024db" string(32) "0000000000783d6900000000487024db" string(32) "0000000000783d6a00000000487024db" bool(true)
Output for 7.1.7
string(32) "000000001927177a000000005fc09a6c" string(32) "0000000019271779000000005fc09a6c" string(32) "000000001927177a000000005fc09a6c" bool(true)
Output for 7.1.6
string(32) "00000000221371d8000000004c364e74" string(32) "00000000221371db000000004c364e74" string(32) "00000000221371d8000000004c364e74" bool(true)
Output for 7.1.5
string(32) "0000000003d06ed1000000006adac5e1" string(32) "0000000003d06ed2000000006adac5e1" string(32) "0000000003d06ed1000000006adac5e1" bool(true)
Output for 7.1.0
string(32) "0000000025445940000000003aa1120e" string(32) "0000000025445943000000003aa1120e" string(32) "0000000025445940000000003aa1120e" bool(true)
Output for 7.0.20
string(32) "000000002c19fbfa00000000255ed0e9" string(32) "000000002c19fbf900000000255ed0e9" string(32) "000000002c19fbfa00000000255ed0e9" bool(true)
Output for 7.0.6
string(32) "000000005a36f31500000000139652be" string(32) "000000005a36f31600000000139652be" string(32) "000000005a36f31500000000139652be" bool(true)
Output for 7.0.5
string(32) "0000000079386e81000000002e8b6a5e" string(32) "0000000079386e82000000002e8b6a5e" string(32) "0000000079386e81000000002e8b6a5e" bool(true)
Output for 7.0.4
string(32) "000000005560d7070000000042fd9af9" string(32) "000000005560d7040000000042fd9af9" string(32) "000000005560d7070000000042fd9af9" bool(true)
Output for 7.0.3
string(32) "000000004515a2f0000000002e42c1d1" string(32) "000000004515a2f3000000002e42c1d1" string(32) "000000004515a2f0000000002e42c1d1" bool(true)
Output for 7.0.2
string(32) "0000000051460aef0000000003bd8d64" string(32) "0000000051460aec0000000003bd8d64" string(32) "0000000051460aef0000000003bd8d64" bool(true)
Output for 7.0.1
string(32) "00000000751c8a9c000000001fe0716e" string(32) "00000000751c8a9f000000001fe0716e" string(32) "00000000751c8a9c000000001fe0716e" bool(true)
Output for 7.0.0
string(32) "00000000646976e0000000004d179800" string(32) "00000000646976e3000000004d179800" string(32) "00000000646976e0000000004d179800" bool(true)
Output for 5.6.28
string(32) "000000007cc7c31f000000006d4b1bd3" string(32) "000000007cc7c31c000000006d4b1bd3" string(32) "000000007cc7c31f000000006d4b1bd3" bool(true)
Output for 5.6.21
string(32) "0000000001d066a50000000027d2a5ce" string(32) "0000000001d066a60000000027d2a5ce" string(32) "0000000001d066a50000000027d2a5ce" bool(true)
Output for 5.6.20
string(32) "0000000041a5405e000000000388ef82" string(32) "0000000041a5405d000000000388ef82" string(32) "0000000041a5405e000000000388ef82" bool(true)
Output for 5.6.19
string(32) "0000000043ce014a000000002fc7f057" string(32) "0000000043ce0149000000002fc7f057" string(32) "0000000043ce014a000000002fc7f057" bool(true)
Output for 5.6.18
string(32) "000000002800d43c000000005ff6068e" string(32) "000000002800d43f000000005ff6068e" string(32) "000000002800d43c000000005ff6068e" bool(true)
Output for 5.6.17
string(32) "00000000006ac0780000000053aac360" string(32) "00000000006ac07b0000000053aac360" string(32) "00000000006ac0780000000053aac360" bool(true)
Output for 5.6.16
string(32) "000000005698ac3b0000000078e4ff29" string(32) "000000005698ac380000000078e4ff29" string(32) "000000005698ac3b0000000078e4ff29" bool(true)
Output for 5.6.15
string(32) "00000000672f7dac00000000124308c0" string(32) "00000000672f7daf00000000124308c0" string(32) "00000000672f7dac00000000124308c0" bool(true)
Output for 5.6.14
string(32) "00000000267bcf6e0000000077773bf8" string(32) "00000000267bcf6d0000000077773bf8" string(32) "00000000267bcf6e0000000077773bf8" bool(true)
Output for 5.6.13
string(32) "000000007ce5b8c50000000000610f86" string(32) "000000007ce5b8c60000000000610f86" string(32) "000000007ce5b8c50000000000610f86" bool(true)
Output for 5.6.12
string(32) "00000000312171710000000068357d7b" string(32) "00000000312171720000000068357d7b" string(32) "00000000312171710000000068357d7b" bool(true)
Output for 5.6.11
string(32) "00000000033d8e3a0000000076d6098a" string(32) "00000000033d8e390000000076d6098a" string(32) "00000000033d8e3a0000000076d6098a" bool(true)
Output for 5.6.10
string(32) "0000000066c4cb5400000000771729f8" string(32) "0000000066c4cb5700000000771729f8" string(32) "0000000066c4cb5400000000771729f8" bool(true)
Output for 5.6.9
string(32) "0000000028b34301000000004685fd11" string(32) "0000000028b34302000000004685fd11" string(32) "0000000028b34301000000004685fd11" bool(true)
Output for 5.6.8
string(32) "000000001d7c4a2100000000752a8c7f" string(32) "000000001d7c4a2200000000752a8c7f" string(32) "000000001d7c4a2100000000752a8c7f" bool(true)
Output for 5.5.35
string(32) "00000000768c83c90000000077ec9714" string(32) "00000000768c83ca0000000077ec9714" string(32) "00000000768c83c90000000077ec9714" bool(true)
Output for 5.5.34
string(32) "00000000282e79050000000076d17eb2" string(32) "00000000282e79060000000076d17eb2" string(32) "00000000282e79050000000076d17eb2" bool(true)
Output for 5.5.33
string(32) "0000000068347b6b0000000015f03129" string(32) "0000000068347b680000000015f03129" string(32) "0000000068347b6b0000000015f03129" bool(true)
Output for 5.5.32
string(32) "000000000fa9defb000000006d308883" string(32) "000000000fa9def8000000006d308883" string(32) "000000000fa9defb000000006d308883" bool(true)
Output for 5.5.31
string(32) "0000000021dd95d90000000012688139" string(32) "0000000021dd95da0000000012688139" string(32) "0000000021dd95d90000000012688139" bool(true)
Output for 5.5.30
string(32) "00000000157bf7c9000000007ebb333b" string(32) "00000000157bf7ca000000007ebb333b" string(32) "00000000157bf7c9000000007ebb333b" bool(true)
Output for 5.5.29
string(32) "0000000017c35137000000004ae247de" string(32) "0000000017c35134000000004ae247de" string(32) "0000000017c35137000000004ae247de" bool(true)
Output for 5.5.28
string(32) "0000000065fb88ab00000000747e85af" string(32) "0000000065fb88a800000000747e85af" string(32) "0000000065fb88ab00000000747e85af" bool(true)
Output for 5.5.27
string(32) "000000003b5b63a2000000001a68c142" string(32) "000000003b5b63a1000000001a68c142" string(32) "000000003b5b63a2000000001a68c142" bool(true)
Output for 5.5.26
string(32) "00000000072390c000000000761e7193" string(32) "00000000072390c300000000761e7193" string(32) "00000000072390c000000000761e7193" bool(true)
Output for 5.5.25
string(32) "000000000aead5770000000024c6613e" string(32) "000000000aead5740000000024c6613e" string(32) "000000000aead5770000000024c6613e" bool(true)
Output for 5.5.24
string(32) "000000003b7e5262000000007fe38f11" string(32) "000000003b7e5261000000007fe38f11" string(32) "000000003b7e5262000000007fe38f11" bool(true)
Output for 5.4.45
string(32) "000000003b636a8f0000000018071336" string(32) "000000003b636a8c0000000018071336" string(32) "000000003b636a8f0000000018071336" bool(true)
Output for 5.4.44
string(32) "000000000a9ef5b60000000059cbab17" string(32) "000000000a9ef5b50000000059cbab17" string(32) "000000000a9ef5b60000000059cbab17" bool(true)
Output for 5.4.43
string(32) "00000000754627da000000005a303e4f" string(32) "00000000754627d9000000005a303e4f" string(32) "00000000754627da000000005a303e4f" bool(true)
Output for 5.4.42
string(32) "00000000394124bd000000002d8f34af" string(32) "00000000394124be000000002d8f34af" string(32) "00000000394124bd000000002d8f34af" bool(true)
Output for 5.4.41
string(32) "0000000029ff3c0f000000006a87e1bb" string(32) "0000000029ff3c0c000000006a87e1bb" string(32) "0000000029ff3c0f000000006a87e1bb" bool(true)
Output for 5.4.40
string(32) "000000007891e18f000000006e051e1e" string(32) "000000007891e18c000000006e051e1e" string(32) "000000007891e18f000000006e051e1e" bool(true)
Output for 5.4.39
string(32) "000000007dc9b8b6000000003eb004b2" string(32) "000000007dc9b8b5000000003eb004b2" string(32) "000000007dc9b8b6000000003eb004b2" bool(true)
Output for 5.4.38
string(32) "0000000023b77ed7000000003b73bbf5" string(32) "0000000023b77ed4000000003b73bbf5" string(32) "0000000023b77ed7000000003b73bbf5" bool(true)
Output for 5.4.37
string(32) "0000000056ff0f820000000020a0da53" string(32) "0000000056ff0f810000000020a0da53" string(32) "0000000056ff0f820000000020a0da53" bool(true)
Output for 5.4.36
string(32) "00000000285743c40000000055f76dcc" string(32) "00000000285743c70000000055f76dcc" string(32) "00000000285743c40000000055f76dcc" bool(true)
Output for 5.4.35
string(32) "00000000403c9d58000000002ef39c2c" string(32) "00000000403c9d5b000000002ef39c2c" string(32) "00000000403c9d58000000002ef39c2c" bool(true)
Output for 5.4.34
string(32) "0000000014d66dd900000000521db027" string(32) "0000000014d66dda00000000521db027" string(32) "0000000014d66dd900000000521db027" bool(true)
Output for 5.4.32
string(32) "0000000047f113b900000000785ad0f9" string(32) "0000000047f113ba00000000785ad0f9" string(32) "0000000047f113b900000000785ad0f9" bool(true)
Output for 5.4.31
string(32) "00000000571c2dbf0000000063013dbc" string(32) "00000000571c2dbc0000000063013dbc" string(32) "00000000571c2dbf0000000063013dbc" bool(true)
Output for 5.4.30
string(32) "00000000672f7772000000000d082b7a" string(32) "00000000672f7771000000000d082b7a" string(32) "00000000672f7772000000000d082b7a" bool(true)
Output for 5.4.29
string(32) "000000004c7aba6b0000000063e362c7" string(32) "000000004c7aba680000000063e362c7" string(32) "000000004c7aba6b0000000063e362c7" bool(true)
Output for 5.4.28
string(32) "000000004651fe4100000000359e99b6" string(32) "000000004651fe4200000000359e99b6" string(32) "000000004651fe4100000000359e99b6" bool(true)
Output for 5.4.27
string(32) "0000000076044e260000000040fcf690" string(32) "0000000076044e250000000040fcf690" string(32) "0000000076044e260000000040fcf690" bool(true)
Output for 5.4.26
string(32) "000000004707f086000000001a8571cd" string(32) "000000004707f085000000001a8571cd" string(32) "000000004707f086000000001a8571cd" bool(true)
Output for 5.4.25
string(32) "0000000017d248dd00000000204e7fca" string(32) "0000000017d248de00000000204e7fca" string(32) "0000000017d248dd00000000204e7fca" bool(true)
Output for 5.4.24
string(32) "0000000033e2542500000000547c4e31" string(32) "0000000033e2542600000000547c4e31" string(32) "0000000033e2542500000000547c4e31" bool(true)
Output for 5.4.23
string(32) "000000007155d18b000000003c3a7cea" string(32) "000000007155d188000000003c3a7cea" string(32) "000000007155d18b000000003c3a7cea" bool(true)
Output for 5.4.22
string(32) "0000000012fcd0980000000036e5caa4" string(32) "0000000012fcd09b0000000036e5caa4" string(32) "0000000012fcd0980000000036e5caa4" bool(true)
Output for 5.4.21
string(32) "00000000672032bf000000006c3aeef7" string(32) "00000000672032bc000000006c3aeef7" string(32) "00000000672032bf000000006c3aeef7" bool(true)
Output for 5.4.20
string(32) "000000007a29832c0000000016307992" string(32) "000000007a29832f0000000016307992" string(32) "000000007a29832c0000000016307992" bool(true)
Output for 5.4.19
string(32) "000000006ce8c142000000006b95cb3c" string(32) "000000006ce8c141000000006b95cb3c" string(32) "000000006ce8c142000000006b95cb3c" bool(true)
Output for 5.4.18
string(32) "000000004fd2cd950000000041fbe0dd" string(32) "000000004fd2cd960000000041fbe0dd" string(32) "000000004fd2cd950000000041fbe0dd" bool(true)
Output for 5.4.17
string(32) "0000000026a521a80000000059e72315" string(32) "0000000026a521ab0000000059e72315" string(32) "0000000026a521a80000000059e72315" bool(true)
Output for 5.4.16
string(32) "000000000be0ed80000000007e8a92b7" string(32) "000000000be0ed83000000007e8a92b7" string(32) "000000000be0ed80000000007e8a92b7" bool(true)
Output for 5.4.15
string(32) "0000000003c6e26200000000531896dd" string(32) "0000000003c6e26100000000531896dd" string(32) "0000000003c6e26200000000531896dd" bool(true)
Output for 5.4.14
string(32) "000000003353302f000000001e4aaba1" string(32) "000000003353302c000000001e4aaba1" string(32) "000000003353302f000000001e4aaba1" bool(true)
Output for 5.4.13
string(32) "000000003941c9d90000000007349e52" string(32) "000000003941c9da0000000007349e52" string(32) "000000003941c9d90000000007349e52" bool(true)
Output for 5.4.12
string(32) "0000000073beaa88000000001e30f006" string(32) "0000000073beaa8b000000001e30f006" string(32) "0000000073beaa88000000001e30f006" bool(true)
Output for 5.4.11
string(32) "000000005e8730c0000000000e5ca140" string(32) "000000005e8730c3000000000e5ca140" string(32) "000000005e8730c0000000000e5ca140" bool(true)
Output for 5.4.10
string(32) "000000001b3ecb1f0000000054af1a6e" string(32) "000000001b3ecb1c0000000054af1a6e" string(32) "000000001b3ecb1f0000000054af1a6e" bool(true)
Output for 5.4.9
string(32) "000000006467e9f3000000002ca53ac7" string(32) "000000006467e9f0000000002ca53ac7" string(32) "000000006467e9f3000000002ca53ac7" bool(true)
Output for 5.4.8
string(32) "000000001f127c9a00000000572d34a1" string(32) "000000001f127c9900000000572d34a1" string(32) "000000001f127c9a00000000572d34a1" bool(true)
Output for 5.4.7
string(32) "0000000004bea6b0000000005710b994" string(32) "0000000004bea6b3000000005710b994" string(32) "0000000004bea6b0000000005710b994" bool(true)
Output for 5.4.6
string(32) "000000000f734a1a000000004340f5a8" string(32) "000000000f734a19000000004340f5a8" string(32) "000000000f734a1a000000004340f5a8" bool(true)
Output for 5.4.5
string(32) "0000000074ea0d8d000000000ff4f4c6" string(32) "0000000074ea0d8e000000000ff4f4c6" string(32) "0000000074ea0d8d000000000ff4f4c6" bool(true)
Output for 5.4.4
string(32) "0000000019ac2cdc0000000036efb411" string(32) "0000000019ac2cdf0000000036efb411" string(32) "0000000019ac2cdc0000000036efb411" bool(true)
Output for 5.4.3
string(32) "000000005cc5cf240000000075a89e40" string(32) "000000005cc5cf270000000075a89e40" string(32) "000000005cc5cf240000000075a89e40" bool(true)
Output for 5.4.2
string(32) "00000000217af03300000000043a664e" string(32) "00000000217af03000000000043a664e" string(32) "00000000217af03300000000043a664e" bool(true)
Output for 5.4.1
string(32) "000000006eefdb030000000044c65231" string(32) "000000006eefdb000000000044c65231" string(32) "000000006eefdb030000000044c65231" bool(true)
Output for 5.4.0
string(32) "000000005de1f86700000000291447cb" string(32) "000000005de1f86400000000291447cb" string(32) "000000005de1f86700000000291447cb" bool(true)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/s8Tp2 on line 14
Process exited with code 255.