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, true));
based on GYtVD
Output for 7.2.0
string(32) "0000000059b5c5ac0000000026b6b254" string(32) "0000000059b5c5af0000000026b6b254" string(32) "0000000059b5c5ac0000000026b6b254" bool(true)
Output for 7.1.10
string(32) "000000005f55752800000000205ab381" string(32) "000000005f55752b00000000205ab381" string(32) "000000005f55752800000000205ab381" bool(true)
Output for 7.1.7
string(32) "000000003980cc12000000000bbdba6b" string(32) "000000003980cc11000000000bbdba6b" string(32) "000000003980cc12000000000bbdba6b" bool(true)
Output for 7.1.6
string(32) "000000002f0623c50000000050df7ad1" string(32) "000000002f0623c60000000050df7ad1" string(32) "000000002f0623c50000000050df7ad1" bool(true)
Output for 7.1.5
string(32) "0000000056f45d5000000000120e6f0a" string(32) "0000000056f45d5300000000120e6f0a" string(32) "0000000056f45d5000000000120e6f0a" bool(true)
Output for 7.1.0
string(32) "000000005fdffc2b0000000051e3f54a" string(32) "000000005fdffc280000000051e3f54a" string(32) "000000005fdffc2b0000000051e3f54a" bool(true)
Output for 7.0.20
string(32) "0000000034f5f102000000000982c410" string(32) "0000000034f5f101000000000982c410" string(32) "0000000034f5f102000000000982c410" bool(true)
Output for 7.0.6
string(32) "00000000039ea76d000000004d5cb701" string(32) "00000000039ea76e000000004d5cb701" string(32) "00000000039ea76d000000004d5cb701" bool(true)
Output for 7.0.5
string(32) "000000006746e5bf0000000001d4813a" string(32) "000000006746e5bc0000000001d4813a" string(32) "000000006746e5bf0000000001d4813a" bool(true)
Output for 7.0.4
string(32) "000000007a29946f00000000348015c2" string(32) "000000007a29946c00000000348015c2" string(32) "000000007a29946f00000000348015c2" bool(true)
Output for 7.0.3
string(32) "000000002cbdd7b700000000771c7b0d" string(32) "000000002cbdd7b400000000771c7b0d" string(32) "000000002cbdd7b700000000771c7b0d" bool(true)
Output for 7.0.2
string(32) "00000000395d79410000000062fa9383" string(32) "00000000395d79420000000062fa9383" string(32) "00000000395d79410000000062fa9383" bool(true)
Output for 7.0.1
string(32) "00000000514091c60000000032c85959" string(32) "00000000514091c50000000032c85959" string(32) "00000000514091c60000000032c85959" bool(true)
Output for 7.0.0
string(32) "000000002b28fad000000000361e75cd" string(32) "000000002b28fad300000000361e75cd" string(32) "000000002b28fad000000000361e75cd" bool(true)
Output for 5.6.28
string(32) "000000007091801400000000747d6559" string(32) "000000007091801700000000747d6559" string(32) "000000007091801400000000747d6559" bool(true)
Output for 5.6.21
string(32) "00000000357dc24d000000007f3b096b" string(32) "00000000357dc24e000000007f3b096b" string(32) "00000000357dc24d000000007f3b096b" bool(true)
Output for 5.6.20
string(32) "000000000521a38200000000264e31d1" string(32) "000000000521a38100000000264e31d1" string(32) "000000000521a38200000000264e31d1" bool(true)
Output for 5.6.19
string(32) "000000005357829100000000280768dc" string(32) "000000005357829200000000280768dc" string(32) "000000005357829100000000280768dc" bool(true)
Output for 5.6.18
string(32) "0000000053a1ccc60000000023ccebae" string(32) "0000000053a1ccc50000000023ccebae" string(32) "0000000053a1ccc60000000023ccebae" bool(true)
Output for 5.6.17
string(32) "000000005e5a58b1000000007e7eab53" string(32) "000000005e5a58b2000000007e7eab53" string(32) "000000005e5a58b1000000007e7eab53" bool(true)
Output for 5.6.16
string(32) "00000000400769d900000000270444d7" string(32) "00000000400769da00000000270444d7" string(32) "00000000400769d900000000270444d7" bool(true)
Output for 5.6.15
string(32) "0000000018059f98000000003a0910db" string(32) "0000000018059f9b000000003a0910db" string(32) "0000000018059f98000000003a0910db" bool(true)
Output for 5.6.14
string(32) "000000000b142162000000003dfe68e8" string(32) "000000000b142161000000003dfe68e8" string(32) "000000000b142162000000003dfe68e8" bool(true)
Output for 5.6.13
string(32) "0000000014885bee0000000001273525" string(32) "0000000014885bed0000000001273525" string(32) "0000000014885bee0000000001273525" bool(true)
Output for 5.6.12
string(32) "0000000039524fc70000000050b5837d" string(32) "0000000039524fc40000000050b5837d" string(32) "0000000039524fc70000000050b5837d" bool(true)
Output for 5.6.11
string(32) "00000000287723c90000000074db4518" string(32) "00000000287723ca0000000074db4518" string(32) "00000000287723c90000000074db4518" bool(true)
Output for 5.6.10
string(32) "000000003c1d459c0000000028b365cc" string(32) "000000003c1d459f0000000028b365cc" string(32) "000000003c1d459c0000000028b365cc" bool(true)
Output for 5.6.9
string(32) "000000005ea67553000000005c638142" string(32) "000000005ea67550000000005c638142" string(32) "000000005ea67553000000005c638142" bool(true)
Output for 5.6.8
string(32) "000000003000108f000000000d2ed406" string(32) "000000003000108c000000000d2ed406" string(32) "000000003000108f000000000d2ed406" bool(true)
Output for 5.5.35
string(32) "000000003ef64ced0000000064240392" string(32) "000000003ef64cee0000000064240392" string(32) "000000003ef64ced0000000064240392" bool(true)
Output for 5.5.34
string(32) "000000007e8d6200000000000ad5800d" string(32) "000000007e8d6203000000000ad5800d" string(32) "000000007e8d6200000000000ad5800d" bool(true)
Output for 5.5.33
string(32) "000000006d413fd3000000000b625e88" string(32) "000000006d413fd0000000000b625e88" string(32) "000000006d413fd3000000000b625e88" bool(true)
Output for 5.5.32
string(32) "000000003be464c0000000005d786b50" string(32) "000000003be464c3000000005d786b50" string(32) "000000003be464c0000000005d786b50" bool(true)
Output for 5.5.31
string(32) "000000002315527b000000004ab51f2b" string(32) "0000000023155278000000004ab51f2b" string(32) "000000002315527b000000004ab51f2b" bool(true)
Output for 5.5.30
string(32) "0000000072a37097000000003e65969e" string(32) "0000000072a37094000000003e65969e" string(32) "0000000072a37097000000003e65969e" bool(true)
Output for 5.5.29
string(32) "000000001bd64fa3000000006b22ee03" string(32) "000000001bd64fa0000000006b22ee03" string(32) "000000001bd64fa3000000006b22ee03" bool(true)
Output for 5.5.28
string(32) "000000001c9ca576000000003cd00545" string(32) "000000001c9ca575000000003cd00545" string(32) "000000001c9ca576000000003cd00545" bool(true)
Output for 5.5.27
string(32) "00000000626c7640000000002d47145a" string(32) "00000000626c7643000000002d47145a" string(32) "00000000626c7640000000002d47145a" bool(true)
Output for 5.5.26
string(32) "000000005a942cd50000000010209587" string(32) "000000005a942cd60000000010209587" string(32) "000000005a942cd50000000010209587" bool(true)
Output for 5.5.25
string(32) "000000006a6f8cd4000000006ecbc247" string(32) "000000006a6f8cd7000000006ecbc247" string(32) "000000006a6f8cd4000000006ecbc247" bool(true)
Output for 5.5.24
string(32) "0000000079de38d800000000197a9348" string(32) "0000000079de38db00000000197a9348" string(32) "0000000079de38d800000000197a9348" bool(true)
Output for 5.4.45
string(32) "000000000d828add0000000073416d43" string(32) "000000000d828ade0000000073416d43" string(32) "000000000d828add0000000073416d43" bool(true)
Output for 5.4.44
string(32) "0000000030e9f3020000000018e2ae12" string(32) "0000000030e9f3010000000018e2ae12" string(32) "0000000030e9f3020000000018e2ae12" bool(true)
Output for 5.4.43
string(32) "0000000026d6a8cf000000006256bf90" string(32) "0000000026d6a8cc000000006256bf90" string(32) "0000000026d6a8cf000000006256bf90" bool(true)
Output for 5.4.42
string(32) "0000000050fc88a200000000272f08ed" string(32) "0000000050fc88a100000000272f08ed" string(32) "0000000050fc88a200000000272f08ed" bool(true)
Output for 5.4.41
string(32) "00000000674801b8000000000a5f22f3" string(32) "00000000674801bb000000000a5f22f3" string(32) "00000000674801b8000000000a5f22f3" bool(true)
Output for 5.4.40
string(32) "00000000291f82c1000000005881cfbf" string(32) "00000000291f82c2000000005881cfbf" string(32) "00000000291f82c1000000005881cfbf" bool(true)
Output for 5.4.39
string(32) "000000000c2bcf2700000000361394a5" string(32) "000000000c2bcf2400000000361394a5" string(32) "000000000c2bcf2700000000361394a5" bool(true)
Output for 5.4.38
string(32) "000000000e262991000000003b6a3cba" string(32) "000000000e262992000000003b6a3cba" string(32) "000000000e262991000000003b6a3cba" bool(true)
Output for 5.4.37
string(32) "0000000018293e56000000000ed95d9a" string(32) "0000000018293e55000000000ed95d9a" string(32) "0000000018293e56000000000ed95d9a" bool(true)
Output for 5.4.36
string(32) "000000003be2da63000000003a2e3fcd" string(32) "000000003be2da60000000003a2e3fcd" string(32) "000000003be2da63000000003a2e3fcd" bool(true)
Output for 5.4.35
string(32) "0000000030b8457f000000000e1d2338" string(32) "0000000030b8457c000000000e1d2338" string(32) "0000000030b8457f000000000e1d2338" bool(true)
Output for 5.4.34
string(32) "0000000016a78b8e0000000019608323" string(32) "0000000016a78b8d0000000019608323" string(32) "0000000016a78b8e0000000019608323" bool(true)
Output for 5.4.32
string(32) "000000007724900a000000000de9227b" string(32) "0000000077249009000000000de9227b" string(32) "000000007724900a000000000de9227b" bool(true)
Output for 5.4.31
string(32) "0000000041c2ea3a00000000228f2f4d" string(32) "0000000041c2ea3900000000228f2f4d" string(32) "0000000041c2ea3a00000000228f2f4d" bool(true)
Output for 5.4.30
string(32) "000000003102f8fa0000000009b1c723" string(32) "000000003102f8f90000000009b1c723" string(32) "000000003102f8fa0000000009b1c723" bool(true)
Output for 5.4.29
string(32) "000000003fd4da4600000000691499c6" string(32) "000000003fd4da4500000000691499c6" string(32) "000000003fd4da4600000000691499c6" bool(true)
Output for 5.4.28
string(32) "0000000052f3e60700000000693059e3" string(32) "0000000052f3e60400000000693059e3" string(32) "0000000052f3e60700000000693059e3" bool(true)
Output for 5.4.27
string(32) "0000000037691f1e0000000030a6cb09" string(32) "0000000037691f1d0000000030a6cb09" string(32) "0000000037691f1e0000000030a6cb09" bool(true)
Output for 5.4.26
string(32) "000000000ff170c7000000003c4040ad" string(32) "000000000ff170c4000000003c4040ad" string(32) "000000000ff170c7000000003c4040ad" bool(true)
Output for 5.4.25
string(32) "00000000056b8c020000000074c7f9d3" string(32) "00000000056b8c010000000074c7f9d3" string(32) "00000000056b8c020000000074c7f9d3" bool(true)
Output for 5.4.24
string(32) "000000003e5052fe000000000de3b61a" string(32) "000000003e5052fd000000000de3b61a" string(32) "000000003e5052fe000000000de3b61a" bool(true)
Output for 5.4.23
string(32) "0000000039a6e5b30000000054d4f034" string(32) "0000000039a6e5b00000000054d4f034" string(32) "0000000039a6e5b30000000054d4f034" bool(true)
Output for 5.4.22
string(32) "0000000023276c40000000003ebb1cb1" string(32) "0000000023276c43000000003ebb1cb1" string(32) "0000000023276c40000000003ebb1cb1" bool(true)
Output for 5.4.21
string(32) "000000006ea3339d0000000054ca1e2a" string(32) "000000006ea3339e0000000054ca1e2a" string(32) "000000006ea3339d0000000054ca1e2a" bool(true)
Output for 5.4.20
string(32) "000000005d5bc5df000000007bd1391f" string(32) "000000005d5bc5dc000000007bd1391f" string(32) "000000005d5bc5df000000007bd1391f" bool(true)
Output for 5.4.19
string(32) "00000000763e0edf0000000009d1b367" string(32) "00000000763e0edc0000000009d1b367" string(32) "00000000763e0edf0000000009d1b367" bool(true)
Output for 5.4.18
string(32) "0000000018264083000000002b232572" string(32) "0000000018264080000000002b232572" string(32) "0000000018264083000000002b232572" bool(true)
Output for 5.4.17
string(32) "00000000725ea1510000000000ed1f77" string(32) "00000000725ea1520000000000ed1f77" string(32) "00000000725ea1510000000000ed1f77" bool(true)
Output for 5.4.16
string(32) "0000000059fa489d00000000789e7107" string(32) "0000000059fa489e00000000789e7107" string(32) "0000000059fa489d00000000789e7107" bool(true)
Output for 5.4.15
string(32) "0000000066aa2501000000006c4f1b6f" string(32) "0000000066aa2502000000006c4f1b6f" string(32) "0000000066aa2501000000006c4f1b6f" bool(true)
Output for 5.4.14
string(32) "000000006fe8a7f6000000001d50ef56" string(32) "000000006fe8a7f5000000001d50ef56" string(32) "000000006fe8a7f6000000001d50ef56" bool(true)
Output for 5.4.13
string(32) "0000000054ed7b88000000000ade8e27" string(32) "0000000054ed7b8b000000000ade8e27" string(32) "0000000054ed7b88000000000ade8e27" bool(true)
Output for 5.4.12
string(32) "00000000171ebe640000000021e21c6a" string(32) "00000000171ebe670000000021e21c6a" string(32) "00000000171ebe640000000021e21c6a" bool(true)
Output for 5.4.11
string(32) "000000000ec1de4b00000000079d1cd6" string(32) "000000000ec1de4800000000079d1cd6" string(32) "000000000ec1de4b00000000079d1cd6" bool(true)
Output for 5.4.10
string(32) "0000000026d10aec0000000013b9cc8b" string(32) "0000000026d10aef0000000013b9cc8b" string(32) "0000000026d10aec0000000013b9cc8b" bool(true)
Output for 5.4.9
string(32) "00000000468f07720000000059d8e591" string(32) "00000000468f07710000000059d8e591" string(32) "00000000468f07720000000059d8e591" bool(true)
Output for 5.4.8
string(32) "000000003607f9b8000000005985ff0e" string(32) "000000003607f9bb000000005985ff0e" string(32) "000000003607f9b8000000005985ff0e" bool(true)
Output for 5.4.7
string(32) "00000000331d4a80000000004f3e7bd8" string(32) "00000000331d4a83000000004f3e7bd8" string(32) "00000000331d4a80000000004f3e7bd8" bool(true)
Output for 5.4.6
string(32) "000000005dc864480000000036a25970" string(32) "000000005dc8644b0000000036a25970" string(32) "000000005dc864480000000036a25970" bool(true)
Output for 5.4.5
string(32) "00000000057d0835000000007e0d868f" string(32) "00000000057d0836000000007e0d868f" string(32) "00000000057d0835000000007e0d868f" bool(true)
Output for 5.4.4
string(32) "0000000055183bef0000000000b75652" string(32) "0000000055183bec0000000000b75652" string(32) "0000000055183bef0000000000b75652" bool(true)
Output for 5.4.3
string(32) "000000003c73fd5100000000285e997d" string(32) "000000003c73fd5200000000285e997d" string(32) "000000003c73fd5100000000285e997d" bool(true)
Output for 5.4.2
string(32) "000000006e849a9a0000000008ebda1f" string(32) "000000006e849a990000000008ebda1f" string(32) "000000006e849a9a0000000008ebda1f" bool(true)
Output for 5.4.1
string(32) "00000000792f5fb7000000002ed3853e" string(32) "00000000792f5fb4000000002ed3853e" string(32) "00000000792f5fb7000000002ed3853e" bool(true)
Output for 5.4.0
string(32) "0000000034e6113f00000000523a8060" string(32) "0000000034e6113c00000000523a8060" string(32) "0000000034e6113f00000000523a8060" bool(true)
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/7g7iY on line 14
Process exited with code 255.