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 EvOuh
Output for 7.2.0
bool(false) string(32) "0000000045c2f68a00000000315bbbac" string(32) "0000000045c2f68900000000315bbbac" bool(false) string(32) "0000000045c2f68800000000315bbbac" string(32) "0000000045c2f68f00000000315bbbac"
Output for 7.1.10
bool(false) string(32) "00000000653cff8e000000004b4e29b5" string(32) "00000000653cff8d000000004b4e29b5" bool(false) string(32) "00000000653cff8c000000004b4e29b5" string(32) "00000000653cff8b000000004b4e29b5"
Output for 7.1.7
bool(false) string(32) "000000001856c6b30000000076125276" string(32) "000000001856c6b00000000076125276" bool(false) string(32) "000000001856c6b10000000076125276" string(32) "000000001856c6b60000000076125276"
Output for 7.1.6
bool(false) string(32) "0000000053b07651000000001b60caf5" string(32) "0000000053b07652000000001b60caf5" bool(false) string(32) "0000000053b07653000000001b60caf5" string(32) "0000000053b07654000000001b60caf5"
Output for 7.1.5
bool(false) string(32) "000000001152580e0000000041e522cd" string(32) "000000001152580d0000000041e522cd" bool(false) string(32) "000000001152580c0000000041e522cd" string(32) "000000001152580b0000000041e522cd"
Output for 7.1.0
bool(false) string(32) "000000005cfd4e27000000004a600fcf" string(32) "000000005cfd4e24000000004a600fcf" bool(false) string(32) "000000005cfd4e25000000004a600fcf" string(32) "000000005cfd4e22000000004a600fcf"
Output for 7.0.20
bool(false) string(32) "0000000053ef3931000000004afe23e9" string(32) "0000000053ef3932000000004afe23e9" bool(false) string(32) "0000000053ef3933000000004afe23e9" string(32) "0000000053ef3934000000004afe23e9"
Output for 7.0.6
bool(false) string(32) "0000000030474e520000000036a6c9d8" string(32) "0000000030474e510000000036a6c9d8" bool(false) string(32) "0000000030474e500000000036a6c9d8" string(32) "0000000030474e570000000036a6c9d8"
Output for 7.0.5
bool(false) string(32) "000000002283713c0000000066560233" string(32) "000000002283713f0000000066560233" bool(false) string(32) "000000002283713e0000000066560233" string(32) "00000000228371390000000066560233"
Output for 7.0.4
bool(false) string(32) "000000002e1c6c9e00000000431f1f9b" string(32) "000000002e1c6c9d00000000431f1f9b" bool(false) string(32) "000000002e1c6c9c00000000431f1f9b" string(32) "000000002e1c6c9b00000000431f1f9b"
Output for 7.0.3
bool(false) string(32) "0000000053811025000000006e1ac737" string(32) "0000000053811026000000006e1ac737" bool(false) string(32) "0000000053811027000000006e1ac737" string(32) "0000000053811020000000006e1ac737"
Output for 7.0.2
bool(false) string(32) "000000002b2dac03000000004386f581" string(32) "000000002b2dac00000000004386f581" bool(false) string(32) "000000002b2dac01000000004386f581" string(32) "000000002b2dac06000000004386f581"
Output for 7.0.1
bool(false) string(32) "000000002f1b2975000000003f3d3653" string(32) "000000002f1b2976000000003f3d3653" bool(false) string(32) "000000002f1b2977000000003f3d3653" string(32) "000000002f1b2970000000003f3d3653"
Output for 7.0.0
bool(false) string(32) "000000002153bd380000000060aed5da" string(32) "000000002153bd3b0000000060aed5da" bool(false) string(32) "000000002153bd3a0000000060aed5da" string(32) "000000002153bd3d0000000060aed5da"
Output for 5.6.28
bool(false) string(32) "000000007434525e0000000044c36292" string(32) "000000007434525d0000000044c36292" bool(false) string(32) "000000007434525c0000000044c36292" string(32) "000000007434525b0000000044c36292"
Output for 5.6.21
bool(false) string(32) "0000000025561f7e0000000004496176" string(32) "0000000025561f7d0000000004496176" bool(false) string(32) "0000000025561f7c0000000004496176" string(32) "0000000025561f7b0000000004496176"
Output for 5.6.20
bool(false) string(32) "0000000031e173eb000000006dbe7f7b" string(32) "0000000031e173e8000000006dbe7f7b" bool(false) string(32) "0000000031e173e9000000006dbe7f7b" string(32) "0000000031e173ee000000006dbe7f7b"
Output for 5.6.19
bool(false) string(32) "000000006c8386bf0000000003dff634" string(32) "000000006c8386bc0000000003dff634" bool(false) string(32) "000000006c8386bd0000000003dff634" string(32) "000000006c8386ba0000000003dff634"
Output for 5.6.18
bool(false) string(32) "000000001de2cd74000000004b59de57" string(32) "000000001de2cd77000000004b59de57" bool(false) string(32) "000000001de2cd76000000004b59de57" string(32) "000000001de2cd71000000004b59de57"
Output for 5.6.17
bool(false) string(32) "0000000010e5d1a5000000003d030023" string(32) "0000000010e5d1a6000000003d030023" bool(false) string(32) "0000000010e5d1a7000000003d030023" string(32) "0000000010e5d1a0000000003d030023"
Output for 5.6.16
bool(false) string(32) "000000005e85c4810000000043aa4a05" string(32) "000000005e85c4820000000043aa4a05" bool(false) string(32) "000000005e85c4830000000043aa4a05" string(32) "000000005e85c4840000000043aa4a05"
Output for 5.6.15
bool(false) string(32) "0000000066e2a24300000000522c7088" string(32) "0000000066e2a24000000000522c7088" bool(false) string(32) "0000000066e2a24100000000522c7088" string(32) "0000000066e2a24600000000522c7088"
Output for 5.6.14
bool(false) string(32) "0000000010d4b33a000000003f4a86ad" string(32) "0000000010d4b339000000003f4a86ad" bool(false) string(32) "0000000010d4b338000000003f4a86ad" string(32) "0000000010d4b33f000000003f4a86ad"
Output for 5.6.13
bool(false) string(32) "0000000000dc330b0000000012cc4a0d" string(32) "0000000000dc33080000000012cc4a0d" bool(false) string(32) "0000000000dc33090000000012cc4a0d" string(32) "0000000000dc330e0000000012cc4a0d"
Output for 5.6.12
bool(false) string(32) "0000000021e8bb2400000000096a5e7f" string(32) "0000000021e8bb2700000000096a5e7f" bool(false) string(32) "0000000021e8bb2600000000096a5e7f" string(32) "0000000021e8bb2100000000096a5e7f"
Output for 5.6.11
bool(false) string(32) "00000000199b12cc00000000328fab5c" string(32) "00000000199b12cf00000000328fab5c" bool(false) string(32) "00000000199b12ce00000000328fab5c" string(32) "00000000199b12c900000000328fab5c"
Output for 5.6.10
bool(false) string(32) "000000004d6c95210000000002a9fb64" string(32) "000000004d6c95220000000002a9fb64" bool(false) string(32) "000000004d6c95230000000002a9fb64" string(32) "000000004d6c95240000000002a9fb64"
Output for 5.6.9
bool(false) string(32) "000000007941cfb0000000000602aa61" string(32) "000000007941cfb3000000000602aa61" bool(false) string(32) "000000007941cfb2000000000602aa61" string(32) "000000007941cfb5000000000602aa61"
Output for 5.6.8
bool(false) string(32) "0000000020db251c0000000046825046" string(32) "0000000020db251f0000000046825046" bool(false) string(32) "0000000020db251e0000000046825046" string(32) "0000000020db25190000000046825046"
Output for 5.5.35
bool(false) string(32) "00000000440f2d5d000000004a98fc4a" string(32) "00000000440f2d5e000000004a98fc4a" bool(false) string(32) "00000000440f2d5f000000004a98fc4a" string(32) "00000000440f2d58000000004a98fc4a"
Output for 5.5.34
bool(false) string(32) "000000005671a1330000000062405702" string(32) "000000005671a1300000000062405702" bool(false) string(32) "000000005671a1310000000062405702" string(32) "000000005671a1360000000062405702"
Output for 5.5.33
bool(false) string(32) "00000000108045aa00000000419d8863" string(32) "00000000108045a900000000419d8863" bool(false) string(32) "00000000108045a800000000419d8863" string(32) "00000000108045af00000000419d8863"
Output for 5.5.32
bool(false) string(32) "000000001d613f28000000000acfffe0" string(32) "000000001d613f2b000000000acfffe0" bool(false) string(32) "000000001d613f2a000000000acfffe0" string(32) "000000001d613f2d000000000acfffe0"
Output for 5.5.31
bool(false) string(32) "000000004987a59200000000078d97c7" string(32) "000000004987a59100000000078d97c7" bool(false) string(32) "000000004987a59000000000078d97c7" string(32) "000000004987a59700000000078d97c7"
Output for 5.5.30
bool(false) string(32) "000000001169071f000000000c92f54a" string(32) "000000001169071c000000000c92f54a" bool(false) string(32) "000000001169071d000000000c92f54a" string(32) "000000001169071a000000000c92f54a"
Output for 5.5.29
bool(false) string(32) "000000001ba9e45c0000000019280b76" string(32) "000000001ba9e45f0000000019280b76" bool(false) string(32) "000000001ba9e45e0000000019280b76" string(32) "000000001ba9e4590000000019280b76"
Output for 5.5.28
bool(false) string(32) "0000000076408fe80000000058ef00b0" string(32) "0000000076408feb0000000058ef00b0" bool(false) string(32) "0000000076408fea0000000058ef00b0" string(32) "0000000076408fed0000000058ef00b0"
Output for 5.5.27
bool(false) string(32) "000000000493fd1e00000000315fa91c" string(32) "000000000493fd1d00000000315fa91c" bool(false) string(32) "000000000493fd1c00000000315fa91c" string(32) "000000000493fd1b00000000315fa91c"
Output for 5.5.26
bool(false) string(32) "00000000232d2da5000000000242e651" string(32) "00000000232d2da6000000000242e651" bool(false) string(32) "00000000232d2da7000000000242e651" string(32) "00000000232d2da0000000000242e651"
Output for 5.5.25
bool(false) string(32) "0000000006cc51c00000000018311e2d" string(32) "0000000006cc51c30000000018311e2d" bool(false) string(32) "0000000006cc51c20000000018311e2d" string(32) "0000000006cc51c50000000018311e2d"
Output for 5.5.24
bool(false) string(32) "000000007da888f2000000004a71ea47" string(32) "000000007da888f1000000004a71ea47" bool(false) string(32) "000000007da888f0000000004a71ea47" string(32) "000000007da888f7000000004a71ea47"
Output for 5.4.45
bool(false) string(32) "000000007078e550000000006a2a8ccd" string(32) "000000007078e553000000006a2a8ccd" bool(false) string(32) "000000007078e552000000006a2a8ccd" string(32) "000000007078e555000000006a2a8ccd"
Output for 5.4.44
bool(false) string(32) "0000000013297917000000003abc849e" string(32) "0000000013297914000000003abc849e" bool(false) string(32) "0000000013297915000000003abc849e" string(32) "0000000013297912000000003abc849e"
Output for 5.4.43
bool(false) string(32) "000000005d4e1e0a000000004f149078" string(32) "000000005d4e1e09000000004f149078" bool(false) string(32) "000000005d4e1e08000000004f149078" string(32) "000000005d4e1e0f000000004f149078"
Output for 5.4.42
bool(false) string(32) "000000001cef13e4000000004b97301c" string(32) "000000001cef13e7000000004b97301c" bool(false) string(32) "000000001cef13e6000000004b97301c" string(32) "000000001cef13e1000000004b97301c"
Output for 5.4.41
bool(false) string(32) "0000000051856058000000000159ab34" string(32) "000000005185605b000000000159ab34" bool(false) string(32) "000000005185605a000000000159ab34" string(32) "000000005185605d000000000159ab34"
Output for 5.4.40
bool(false) string(32) "0000000045eab89000000000077b6101" string(32) "0000000045eab89300000000077b6101" bool(false) string(32) "0000000045eab89200000000077b6101" string(32) "0000000045eab89500000000077b6101"
Output for 5.4.39
bool(false) string(32) "0000000050ea1841000000004cd58a08" string(32) "0000000050ea1842000000004cd58a08" bool(false) string(32) "0000000050ea1843000000004cd58a08" string(32) "0000000050ea1844000000004cd58a08"
Output for 5.4.38
bool(false) string(32) "0000000067e8aac100000000099c6ff4" string(32) "0000000067e8aac200000000099c6ff4" bool(false) string(32) "0000000067e8aac300000000099c6ff4" string(32) "0000000067e8aac400000000099c6ff4"
Output for 5.4.37
bool(false) string(32) "000000003aa34f4d0000000037928e9c" string(32) "000000003aa34f4e0000000037928e9c" bool(false) string(32) "000000003aa34f4f0000000037928e9c" string(32) "000000003aa34f480000000037928e9c"
Output for 5.4.36
bool(false) string(32) "000000002b51f2aa000000006ab1d120" string(32) "000000002b51f2a9000000006ab1d120" bool(false) string(32) "000000002b51f2a8000000006ab1d120" string(32) "000000002b51f2af000000006ab1d120"
Output for 5.4.35
bool(false) string(32) "00000000036cd3470000000019b64c14" string(32) "00000000036cd3440000000019b64c14" bool(false) string(32) "00000000036cd3450000000019b64c14" string(32) "00000000036cd3420000000019b64c14"
Output for 5.4.34
bool(false) string(32) "00000000381d60d4000000000d679143" string(32) "00000000381d60d7000000000d679143" bool(false) string(32) "00000000381d60d6000000000d679143" string(32) "00000000381d60d1000000000d679143"
Output for 5.4.32
bool(false) string(32) "00000000415effd50000000036a174af" string(32) "00000000415effd60000000036a174af" bool(false) string(32) "00000000415effd70000000036a174af" string(32) "00000000415effd00000000036a174af"
Output for 5.4.31
bool(false) string(32) "0000000010c5cae10000000010f8f8d3" string(32) "0000000010c5cae20000000010f8f8d3" bool(false) string(32) "0000000010c5cae30000000010f8f8d3" string(32) "0000000010c5cae40000000010f8f8d3"
Output for 5.4.30
bool(false) string(32) "0000000057759256000000005e36b679" string(32) "0000000057759255000000005e36b679" bool(false) string(32) "0000000057759254000000005e36b679" string(32) "0000000057759253000000005e36b679"
Output for 5.4.29
bool(false) string(32) "00000000721f033c0000000031006676" string(32) "00000000721f033f0000000031006676" bool(false) string(32) "00000000721f033e0000000031006676" string(32) "00000000721f03390000000031006676"
Output for 5.4.28
bool(false) string(32) "00000000007d703a00000000619ae66f" string(32) "00000000007d703900000000619ae66f" bool(false) string(32) "00000000007d703800000000619ae66f" string(32) "00000000007d703f00000000619ae66f"
Output for 5.4.27
bool(false) string(32) "0000000039e3475c0000000007363561" string(32) "0000000039e3475f0000000007363561" bool(false) string(32) "0000000039e3475e0000000007363561" string(32) "0000000039e347590000000007363561"
Output for 5.4.26
bool(false) string(32) "00000000232aab290000000003c39e76" string(32) "00000000232aab2a0000000003c39e76" bool(false) string(32) "00000000232aab2b0000000003c39e76" string(32) "00000000232aab2c0000000003c39e76"
Output for 5.4.25
bool(false) string(32) "000000005382a09a0000000058051e31" string(32) "000000005382a0990000000058051e31" bool(false) string(32) "000000005382a0980000000058051e31" string(32) "000000005382a09f0000000058051e31"
Output for 5.4.24
bool(false) string(32) "0000000077e933710000000001acc0ff" string(32) "0000000077e933720000000001acc0ff" bool(false) string(32) "0000000077e933730000000001acc0ff" string(32) "0000000077e933740000000001acc0ff"
Output for 5.4.23
bool(false) string(32) "000000006b342b190000000061520594" string(32) "000000006b342b1a0000000061520594" bool(false) string(32) "000000006b342b1b0000000061520594" string(32) "000000006b342b1c0000000061520594"
Output for 5.4.22
bool(false) string(32) "000000005162b81b0000000051e851d8" string(32) "000000005162b8180000000051e851d8" bool(false) string(32) "000000005162b8190000000051e851d8" string(32) "000000005162b81e0000000051e851d8"
Output for 5.4.21
bool(false) string(32) "0000000049656bf2000000002e687e37" string(32) "0000000049656bf1000000002e687e37" bool(false) string(32) "0000000049656bf0000000002e687e37" string(32) "0000000049656bf7000000002e687e37"
Output for 5.4.20
bool(false) string(32) "0000000050631d9800000000320e42a5" string(32) "0000000050631d9b00000000320e42a5" bool(false) string(32) "0000000050631d9a00000000320e42a5" string(32) "0000000050631d9d00000000320e42a5"
Output for 5.4.19
bool(false) string(32) "000000002499ccc7000000006687252f" string(32) "000000002499ccc4000000006687252f" bool(false) string(32) "000000002499ccc5000000006687252f" string(32) "000000002499ccc2000000006687252f"
Output for 5.4.18
bool(false) string(32) "000000003f02c3b1000000000f6ea668" string(32) "000000003f02c3b2000000000f6ea668" bool(false) string(32) "000000003f02c3b3000000000f6ea668" string(32) "000000003f02c3b4000000000f6ea668"
Output for 5.4.17
bool(false) string(32) "00000000396c95cf000000003832c9b7" string(32) "00000000396c95cc000000003832c9b7" bool(false) string(32) "00000000396c95cd000000003832c9b7" string(32) "00000000396c95ca000000003832c9b7"
Output for 5.4.16
bool(false) string(32) "000000006e232969000000006df11a8c" string(32) "000000006e23296a000000006df11a8c" bool(false) string(32) "000000006e23296b000000006df11a8c" string(32) "000000006e23296c000000006df11a8c"
Output for 5.4.15
bool(false) string(32) "0000000074b6444a000000000825bb74" string(32) "0000000074b64449000000000825bb74" bool(false) string(32) "0000000074b64448000000000825bb74" string(32) "0000000074b6444f000000000825bb74"
Output for 5.4.14
bool(false) string(32) "000000000b357537000000002a9c3abc" string(32) "000000000b357534000000002a9c3abc" bool(false) string(32) "000000000b357535000000002a9c3abc" string(32) "000000000b357532000000002a9c3abc"
Output for 5.4.13
bool(false) string(32) "00000000739c57170000000037bea472" string(32) "00000000739c57140000000037bea472" bool(false) string(32) "00000000739c57150000000037bea472" string(32) "00000000739c57120000000037bea472"
Output for 5.4.12
bool(false) string(32) "000000001eff2e1b00000000408ef423" string(32) "000000001eff2e1800000000408ef423" bool(false) string(32) "000000001eff2e1900000000408ef423" string(32) "000000001eff2e1e00000000408ef423"
Output for 5.4.11
bool(false) string(32) "000000000715ce47000000004c13c09f" string(32) "000000000715ce44000000004c13c09f" bool(false) string(32) "000000000715ce45000000004c13c09f" string(32) "000000000715ce42000000004c13c09f"
Output for 5.4.10
bool(false) string(32) "000000006d30c3e70000000043769289" string(32) "000000006d30c3e40000000043769289" bool(false) string(32) "000000006d30c3e50000000043769289" string(32) "000000006d30c3e20000000043769289"
Output for 5.4.9
bool(false) string(32) "000000002006325c000000001a544d7f" string(32) "000000002006325f000000001a544d7f" bool(false) string(32) "000000002006325e000000001a544d7f" string(32) "0000000020063259000000001a544d7f"
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Q4BU1 on line 3
Process exited with code 255.