<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hnw</author_name>
  <author_url>https://blog.hatena.ne.jp/hnw/</author_url>
  <blog_title>hnwの日記</blog_title>
  <blog_url>https://hnw.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>(2014/8/5 0:10追記)下記の結果は32bit環境でないと再現できませんが、64bit環境でも「&quot;0x8000000000000000&quot;」などで再現させることが可能です。 あけましておめでとうございます。 PHPの「==」演算子に関して、バージョン間で挙動が変わる例を紹介します。 僕は半年ほど前に「PHPでも巨大な16進数が書けるようになった」という記事を書きました。この16進数に関するPHPの機能拡張により、PHPの==演算子の挙動が変わっているのです。 具体的には、次のスクリプトの実行結果がPHP5.2.0以前とPHP5.2.1以降とで異なります。 &lt;?php $x = &quot;0x1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhnw.hatenablog.com%2Fentry%2F20080103&quot; title=&quot;PHPの==演算子と巨大な16進数 - hnwの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-01-03 00:00:00</published>
  <title>PHPの==演算子と巨大な16進数</title>
  <type>rich</type>
  <url>https://hnw.hatenablog.com/entry/20080103</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
