3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = (object)['a' => 1, 'b' => 2]; $b = (object)['a' => 1, 'b' => 2]; var_dump($a === $b); var_dump(spl_object_hash($a)); var_dump(spl_object_hash($b)); $c = new \stdClass; $d = new \stdClass; // $c->a = 1; // $d->a = 1; var_dump($c == $d); var_dump(spl_object_hash($c)); var_dump(spl_object_hash($d));
based on Q4BU1
Output for 7.2.0
bool(false) string(32) "0000000061754f3a0000000027be5481" string(32) "0000000061754f390000000027be5481" bool(true) string(32) "0000000061754f380000000027be5481" string(32) "0000000061754f3f0000000027be5481"
Output for 7.1.10
bool(false) string(32) "000000002202d851000000004aa0d50a" string(32) "000000002202d852000000004aa0d50a" bool(true) string(32) "000000002202d853000000004aa0d50a" string(32) "000000002202d854000000004aa0d50a"
Output for 7.1.7
bool(false) string(32) "000000006d66aa750000000013fc5e8c" string(32) "000000006d66aa760000000013fc5e8c" bool(true) string(32) "000000006d66aa770000000013fc5e8c" string(32) "000000006d66aa700000000013fc5e8c"
Output for 7.1.6
bool(false) string(32) "000000000b8494a9000000002afc677a" string(32) "000000000b8494aa000000002afc677a" bool(true) string(32) "000000000b8494ab000000002afc677a" string(32) "000000000b8494ac000000002afc677a"
Output for 7.1.5
bool(false) string(32) "000000002bee0b530000000056287b37" string(32) "000000002bee0b500000000056287b37" bool(true) string(32) "000000002bee0b510000000056287b37" string(32) "000000002bee0b560000000056287b37"
Output for 7.1.0
bool(false) string(32) "0000000034e11823000000006895fbc2" string(32) "0000000034e11820000000006895fbc2" bool(true) string(32) "0000000034e11821000000006895fbc2" string(32) "0000000034e11826000000006895fbc2"
Output for 7.0.20
bool(false) string(32) "000000007921f2770000000071521688" string(32) "000000007921f2740000000071521688" bool(true) string(32) "000000007921f2750000000071521688" string(32) "000000007921f2720000000071521688"
Output for 7.0.6
bool(false) string(32) "0000000008a563e2000000005fe4b5b8" string(32) "0000000008a563e1000000005fe4b5b8" bool(true) string(32) "0000000008a563e0000000005fe4b5b8" string(32) "0000000008a563e7000000005fe4b5b8"
Output for 7.0.5
bool(false) string(32) "0000000006cf43bb000000001aa0bb2b" string(32) "0000000006cf43b8000000001aa0bb2b" bool(true) string(32) "0000000006cf43b9000000001aa0bb2b" string(32) "0000000006cf43be000000001aa0bb2b"
Output for 7.0.4
bool(false) string(32) "000000004253a72f000000001c2e0a39" string(32) "000000004253a72c000000001c2e0a39" bool(true) string(32) "000000004253a72d000000001c2e0a39" string(32) "000000004253a72a000000001c2e0a39"
Output for 7.0.3
bool(false) string(32) "000000006c3be8a10000000041ff3a36" string(32) "000000006c3be8a20000000041ff3a36" bool(true) string(32) "000000006c3be8a30000000041ff3a36" string(32) "000000006c3be8a40000000041ff3a36"
Output for 7.0.2
bool(false) string(32) "000000006f4801ec000000003bbc4aae" string(32) "000000006f4801ef000000003bbc4aae" bool(true) string(32) "000000006f4801ee000000003bbc4aae" string(32) "000000006f4801e9000000003bbc4aae"
Output for 7.0.1
bool(false) string(32) "000000005f4078230000000074175cbc" string(32) "000000005f4078200000000074175cbc" bool(true) string(32) "000000005f4078210000000074175cbc" string(32) "000000005f4078260000000074175cbc"
Output for 7.0.0
bool(false) string(32) "000000007cf37c91000000006bcecfea" string(32) "000000007cf37c92000000006bcecfea" bool(true) string(32) "000000007cf37c93000000006bcecfea" string(32) "000000007cf37c94000000006bcecfea"
Output for 5.6.28
bool(false) string(32) "000000001012245c000000002902f957" string(32) "000000001012245f000000002902f957" bool(true) string(32) "000000001012245e000000002902f957" string(32) "0000000010122459000000002902f957"
Output for 5.6.21
bool(false) string(32) "000000007a594329000000000f7df4f1" string(32) "000000007a59432a000000000f7df4f1" bool(true) string(32) "000000007a59432b000000000f7df4f1" string(32) "000000007a59432c000000000f7df4f1"
Output for 5.6.20
bool(false) string(32) "00000000467d270f000000002a15e0c9" string(32) "00000000467d270c000000002a15e0c9" bool(true) string(32) "00000000467d270d000000002a15e0c9" string(32) "00000000467d270a000000002a15e0c9"
Output for 5.6.19
bool(false) string(32) "000000001bd0bfd7000000000e777229" string(32) "000000001bd0bfd4000000000e777229" bool(true) string(32) "000000001bd0bfd5000000000e777229" string(32) "000000001bd0bfd2000000000e777229"
Output for 5.6.18
bool(false) string(32) "000000002a7f18d70000000030012e4b" string(32) "000000002a7f18d40000000030012e4b" bool(true) string(32) "000000002a7f18d50000000030012e4b" string(32) "000000002a7f18d20000000030012e4b"
Output for 5.6.17
bool(false) string(32) "0000000022e126a2000000002065af32" string(32) "0000000022e126a1000000002065af32" bool(true) string(32) "0000000022e126a0000000002065af32" string(32) "0000000022e126a7000000002065af32"
Output for 5.6.16
bool(false) string(32) "000000004667b941000000003b907f08" string(32) "000000004667b942000000003b907f08" bool(true) string(32) "000000004667b943000000003b907f08" string(32) "000000004667b944000000003b907f08"
Output for 5.6.15
bool(false) string(32) "000000004816f966000000003bb62173" string(32) "000000004816f965000000003bb62173" bool(true) string(32) "000000004816f964000000003bb62173" string(32) "000000004816f963000000003bb62173"
Output for 5.6.14
bool(false) string(32) "0000000072fc0f7a0000000035229eaf" string(32) "0000000072fc0f790000000035229eaf" bool(true) string(32) "0000000072fc0f780000000035229eaf" string(32) "0000000072fc0f7f0000000035229eaf"
Output for 5.6.13
bool(false) string(32) "000000006145fea3000000002797f41d" string(32) "000000006145fea0000000002797f41d" bool(true) string(32) "000000006145fea1000000002797f41d" string(32) "000000006145fea6000000002797f41d"
Output for 5.6.12
bool(false) string(32) "0000000038c4aa050000000034fc9a31" string(32) "0000000038c4aa060000000034fc9a31" bool(true) string(32) "0000000038c4aa070000000034fc9a31" string(32) "0000000038c4aa000000000034fc9a31"
Output for 5.6.11
bool(false) string(32) "00000000044fed7c0000000027b52f83" string(32) "00000000044fed7f0000000027b52f83" bool(true) string(32) "00000000044fed7e0000000027b52f83" string(32) "00000000044fed790000000027b52f83"
Output for 5.6.10
bool(false) string(32) "0000000050d038ee000000001f4549da" string(32) "0000000050d038ed000000001f4549da" bool(true) string(32) "0000000050d038ec000000001f4549da" string(32) "0000000050d038eb000000001f4549da"
Output for 5.6.9
bool(false) string(32) "000000005a6eabcd000000003f1196c8" string(32) "000000005a6eabce000000003f1196c8" bool(true) string(32) "000000005a6eabcf000000003f1196c8" string(32) "000000005a6eabc8000000003f1196c8"
Output for 5.6.8
bool(false) string(32) "000000001647db5c000000004a6bb838" string(32) "000000001647db5f000000004a6bb838" bool(true) string(32) "000000001647db5e000000004a6bb838" string(32) "000000001647db59000000004a6bb838"
Output for 5.5.35
bool(false) string(32) "0000000043ace49600000000721a9ea9" string(32) "0000000043ace49500000000721a9ea9" bool(true) string(32) "0000000043ace49400000000721a9ea9" string(32) "0000000043ace49300000000721a9ea9"
Output for 5.5.34
bool(false) string(32) "000000001b8f76d90000000007536386" string(32) "000000001b8f76da0000000007536386" bool(true) string(32) "000000001b8f76db0000000007536386" string(32) "000000001b8f76dc0000000007536386"
Output for 5.5.33
bool(false) string(32) "00000000260bf0ad000000000fa3d484" string(32) "00000000260bf0ae000000000fa3d484" bool(true) string(32) "00000000260bf0af000000000fa3d484" string(32) "00000000260bf0a8000000000fa3d484"
Output for 5.5.32
bool(false) string(32) "00000000511e837a000000003f96be47" string(32) "00000000511e8379000000003f96be47" bool(true) string(32) "00000000511e8378000000003f96be47" string(32) "00000000511e837f000000003f96be47"
Output for 5.5.31
bool(false) string(32) "000000004518ced6000000007c6a72d0" string(32) "000000004518ced5000000007c6a72d0" bool(true) string(32) "000000004518ced4000000007c6a72d0" string(32) "000000004518ced3000000007c6a72d0"
Output for 5.5.30
bool(false) string(32) "000000002ebe2c980000000040455aee" string(32) "000000002ebe2c9b0000000040455aee" bool(true) string(32) "000000002ebe2c9a0000000040455aee" string(32) "000000002ebe2c9d0000000040455aee"
Output for 5.5.29
bool(false) string(32) "0000000045b72812000000000bb42821" string(32) "0000000045b72811000000000bb42821" bool(true) string(32) "0000000045b72810000000000bb42821" string(32) "0000000045b72817000000000bb42821"
Output for 5.5.28
bool(false) string(32) "0000000071c016900000000056edba0d" string(32) "0000000071c016930000000056edba0d" bool(true) string(32) "0000000071c016920000000056edba0d" string(32) "0000000071c016950000000056edba0d"
Output for 5.5.27
bool(false) string(32) "00000000497ba55500000000283f2109" string(32) "00000000497ba55600000000283f2109" bool(true) string(32) "00000000497ba55700000000283f2109" string(32) "00000000497ba55000000000283f2109"
Output for 5.5.26
bool(false) string(32) "0000000071557c91000000004ca40425" string(32) "0000000071557c92000000004ca40425" bool(true) string(32) "0000000071557c93000000004ca40425" string(32) "0000000071557c94000000004ca40425"
Output for 5.5.25
bool(false) string(32) "0000000065c5a6c0000000002b0766dc" string(32) "0000000065c5a6c3000000002b0766dc" bool(true) string(32) "0000000065c5a6c2000000002b0766dc" string(32) "0000000065c5a6c5000000002b0766dc"
Output for 5.5.24
bool(false) string(32) "0000000021e26405000000005a8a5158" string(32) "0000000021e26406000000005a8a5158" bool(true) string(32) "0000000021e26407000000005a8a5158" string(32) "0000000021e26400000000005a8a5158"
Output for 5.4.45
bool(false) string(32) "0000000060d44e430000000032a44841" string(32) "0000000060d44e400000000032a44841" bool(true) string(32) "0000000060d44e410000000032a44841" string(32) "0000000060d44e460000000032a44841"
Output for 5.4.44
bool(false) string(32) "000000001e89d334000000004a15621d" string(32) "000000001e89d337000000004a15621d" bool(true) string(32) "000000001e89d336000000004a15621d" string(32) "000000001e89d331000000004a15621d"
Output for 5.4.43
bool(false) string(32) "000000002222595700000000216d35bf" string(32) "000000002222595400000000216d35bf" bool(true) string(32) "000000002222595500000000216d35bf" string(32) "000000002222595200000000216d35bf"
Output for 5.4.42
bool(false) string(32) "000000006e1d56ba000000002147115f" string(32) "000000006e1d56b9000000002147115f" bool(true) string(32) "000000006e1d56b8000000002147115f" string(32) "000000006e1d56bf000000002147115f"
Output for 5.4.41
bool(false) string(32) "0000000007cc30af000000002fac410b" string(32) "0000000007cc30ac000000002fac410b" bool(true) string(32) "0000000007cc30ad000000002fac410b" string(32) "0000000007cc30aa000000002fac410b"
Output for 5.4.40
bool(false) string(32) "000000001af08d70000000004f542e99" string(32) "000000001af08d73000000004f542e99" bool(true) string(32) "000000001af08d72000000004f542e99" string(32) "000000001af08d75000000004f542e99"
Output for 5.4.39
bool(false) string(32) "0000000012d49eed000000005eb7d2b4" string(32) "0000000012d49eee000000005eb7d2b4" bool(true) string(32) "0000000012d49eef000000005eb7d2b4" string(32) "0000000012d49ee8000000005eb7d2b4"
Output for 5.4.38
bool(false) string(32) "000000000609cf0d0000000061fd00a3" string(32) "000000000609cf0e0000000061fd00a3" bool(true) string(32) "000000000609cf0f0000000061fd00a3" string(32) "000000000609cf080000000061fd00a3"
Output for 5.4.37
bool(false) string(32) "000000004b17002c000000001a1e4e13" string(32) "000000004b17002f000000001a1e4e13" bool(true) string(32) "000000004b17002e000000001a1e4e13" string(32) "000000004b170029000000001a1e4e13"
Output for 5.4.36
bool(false) string(32) "000000007fbfda440000000006338528" string(32) "000000007fbfda470000000006338528" bool(true) string(32) "000000007fbfda460000000006338528" string(32) "000000007fbfda410000000006338528"
Output for 5.4.35
bool(false) string(32) "00000000059da9bb00000000732a28d0" string(32) "00000000059da9b800000000732a28d0" bool(true) string(32) "00000000059da9b900000000732a28d0" string(32) "00000000059da9be00000000732a28d0"
Output for 5.4.34
bool(false) string(32) "000000006d96fe7e0000000079144a6a" string(32) "000000006d96fe7d0000000079144a6a" bool(true) string(32) "000000006d96fe7c0000000079144a6a" string(32) "000000006d96fe7b0000000079144a6a"
Output for 5.4.32
bool(false) string(32) "0000000027272b8a000000006bd4fccd" string(32) "0000000027272b89000000006bd4fccd" bool(true) string(32) "0000000027272b88000000006bd4fccd" string(32) "0000000027272b8f000000006bd4fccd"
Output for 5.4.31
bool(false) string(32) "00000000075f2307000000001e85f75e" string(32) "00000000075f2304000000001e85f75e" bool(true) string(32) "00000000075f2305000000001e85f75e" string(32) "00000000075f2302000000001e85f75e"
Output for 5.4.30
bool(false) string(32) "0000000061755952000000003bc016d8" string(32) "0000000061755951000000003bc016d8" bool(true) string(32) "0000000061755950000000003bc016d8" string(32) "0000000061755957000000003bc016d8"
Output for 5.4.29
bool(false) string(32) "000000004d37ab2b0000000079191008" string(32) "000000004d37ab280000000079191008" bool(true) string(32) "000000004d37ab290000000079191008" string(32) "000000004d37ab2e0000000079191008"
Output for 5.4.28
bool(false) string(32) "000000004011bcc100000000278aeef4" string(32) "000000004011bcc200000000278aeef4" bool(true) string(32) "000000004011bcc300000000278aeef4" string(32) "000000004011bcc400000000278aeef4"
Output for 5.4.27
bool(false) string(32) "000000002cba5aa7000000003711f647" string(32) "000000002cba5aa4000000003711f647" bool(true) string(32) "000000002cba5aa5000000003711f647" string(32) "000000002cba5aa2000000003711f647"
Output for 5.4.26
bool(false) string(32) "0000000019634a54000000002cd17a75" string(32) "0000000019634a57000000002cd17a75" bool(true) string(32) "0000000019634a56000000002cd17a75" string(32) "0000000019634a51000000002cd17a75"
Output for 5.4.25
bool(false) string(32) "0000000047774f730000000062b6ebcc" string(32) "0000000047774f700000000062b6ebcc" bool(true) string(32) "0000000047774f710000000062b6ebcc" string(32) "0000000047774f760000000062b6ebcc"
Output for 5.4.24
bool(false) string(32) "000000003af7d165000000005460b2db" string(32) "000000003af7d166000000005460b2db" bool(true) string(32) "000000003af7d167000000005460b2db" string(32) "000000003af7d160000000005460b2db"
Output for 5.4.23
bool(false) string(32) "000000002b30a35a0000000019a9585c" string(32) "000000002b30a3590000000019a9585c" bool(true) string(32) "000000002b30a3580000000019a9585c" string(32) "000000002b30a35f0000000019a9585c"
Output for 5.4.22
bool(false) string(32) "0000000017edc032000000002b9df962" string(32) "0000000017edc031000000002b9df962" bool(true) string(32) "0000000017edc030000000002b9df962" string(32) "0000000017edc037000000002b9df962"
Output for 5.4.21
bool(false) string(32) "000000007f8ff5fd0000000003523ba3" string(32) "000000007f8ff5fe0000000003523ba3" bool(true) string(32) "000000007f8ff5ff0000000003523ba3" string(32) "000000007f8ff5f80000000003523ba3"
Output for 5.4.20
bool(false) string(32) "0000000012f57556000000001ebaed88" string(32) "0000000012f57555000000001ebaed88" bool(true) string(32) "0000000012f57554000000001ebaed88" string(32) "0000000012f57553000000001ebaed88"
Output for 5.4.19
bool(false) string(32) "0000000044f1803f00000000277f6a62" string(32) "0000000044f1803c00000000277f6a62" bool(true) string(32) "0000000044f1803d00000000277f6a62" string(32) "0000000044f1803a00000000277f6a62"
Output for 5.4.18
bool(false) string(32) "000000000be844ec000000001adeba7e" string(32) "000000000be844ef000000001adeba7e" bool(true) string(32) "000000000be844ee000000001adeba7e" string(32) "000000000be844e9000000001adeba7e"
Output for 5.4.17
bool(false) string(32) "000000001473a202000000002f39b06a" string(32) "000000001473a201000000002f39b06a" bool(true) string(32) "000000001473a200000000002f39b06a" string(32) "000000001473a207000000002f39b06a"
Output for 5.4.16
bool(false) string(32) "000000001f464ad2000000006ae6e29a" string(32) "000000001f464ad1000000006ae6e29a" bool(true) string(32) "000000001f464ad0000000006ae6e29a" string(32) "000000001f464ad7000000006ae6e29a"
Output for 5.4.15
bool(false) string(32) "0000000031b81423000000006d8a9cb7" string(32) "0000000031b81420000000006d8a9cb7" bool(true) string(32) "0000000031b81421000000006d8a9cb7" string(32) "0000000031b81426000000006d8a9cb7"
Output for 5.4.14
bool(false) string(32) "000000005bda1ec400000000599daca9" string(32) "000000005bda1ec700000000599daca9" bool(true) string(32) "000000005bda1ec600000000599daca9" string(32) "000000005bda1ec100000000599daca9"
Output for 5.4.13
bool(false) string(32) "0000000032ab8be4000000000180a161" string(32) "0000000032ab8be7000000000180a161" bool(true) string(32) "0000000032ab8be6000000000180a161" string(32) "0000000032ab8be1000000000180a161"
Output for 5.4.12
bool(false) string(32) "00000000149c2d0b000000005885308a" string(32) "00000000149c2d08000000005885308a" bool(true) string(32) "00000000149c2d09000000005885308a" string(32) "00000000149c2d0e000000005885308a"
Output for 5.4.11
bool(false) string(32) "000000006cbf8683000000000826a729" string(32) "000000006cbf8680000000000826a729" bool(true) string(32) "000000006cbf8681000000000826a729" string(32) "000000006cbf8686000000000826a729"
Output for 5.4.10
bool(false) string(32) "00000000616fa56a000000002233cbdb" string(32) "00000000616fa569000000002233cbdb" bool(true) string(32) "00000000616fa568000000002233cbdb" string(32) "00000000616fa56f000000002233cbdb"
Output for 5.4.9
bool(false) string(32) "000000006cd84ae9000000000765c651" string(32) "000000006cd84aea000000000765c651" bool(true) string(32) "000000006cd84aeb000000000765c651" string(32) "000000006cd84aec000000000765c651"
Output for 5.4.8
bool(false) string(32) "000000004c5efb7e00000000653eabce" string(32) "000000004c5efb7d00000000653eabce" bool(true) string(32) "000000004c5efb7c00000000653eabce" string(32) "000000004c5efb7b00000000653eabce"
Output for 5.4.7
bool(false) string(32) "0000000000d25bd2000000001b115395" string(32) "0000000000d25bd1000000001b115395" bool(true) string(32) "0000000000d25bd0000000001b115395" string(32) "0000000000d25bd7000000001b115395"
Output for 5.4.6
bool(false) string(32) "000000004df8f129000000001d2b8cc2" string(32) "000000004df8f12a000000001d2b8cc2" bool(true) string(32) "000000004df8f12b000000001d2b8cc2" string(32) "000000004df8f12c000000001d2b8cc2"
Output for 5.4.5
bool(false) string(32) "00000000313771b7000000006339da31" string(32) "00000000313771b4000000006339da31" bool(true) string(32) "00000000313771b5000000006339da31" string(32) "00000000313771b2000000006339da31"
Output for 5.4.4
bool(false) string(32) "00000000189357e300000000505a321e" string(32) "00000000189357e000000000505a321e" bool(true) string(32) "00000000189357e100000000505a321e" string(32) "00000000189357e600000000505a321e"
Output for 5.4.3
bool(false) string(32) "00000000079af49f000000001d47f00b" string(32) "00000000079af49c000000001d47f00b" bool(true) string(32) "00000000079af49d000000001d47f00b" string(32) "00000000079af49a000000001d47f00b"
Output for 5.4.2
bool(false) string(32) "0000000009ea1f090000000071330d02" string(32) "0000000009ea1f0a0000000071330d02" bool(true) string(32) "0000000009ea1f0b0000000071330d02" string(32) "0000000009ea1f0c0000000071330d02"
Output for 5.4.1
bool(false) string(32) "00000000251ad291000000007cfe6bf4" string(32) "00000000251ad292000000007cfe6bf4" bool(true) string(32) "00000000251ad293000000007cfe6bf4" string(32) "00000000251ad294000000007cfe6bf4"
Output for 5.4.0
bool(false) string(32) "000000005fb616f0000000006de41198" string(32) "000000005fb616f3000000006de41198" bool(true) string(32) "000000005fb616f2000000006de41198" string(32) "000000005fb616f5000000006de41198"
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/PU791 on line 3
Process exited with code 255.