<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Thu, 23 May 2013 20:19:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Anthony Ferrara: The Anatomy Of Equals - Opcode Analysis]]></title>
      <guid>http://www.phpdeveloper.org/news/18248</guid>
      <link>http://www.phpdeveloper.org/news/18248</link>
      <description><![CDATA[<p>
<i>Anthony Ferrara</i> has a new post today getting into the details of <a href="http://blog.ircmaxell.com/2012/07/the-anatomy-of-equals-opcode-analysis.html">how "equals" works in PHP</a> at the opcode level. He focuses on the answer to a question he received:
</p>
<blockquote>
I was asked an interesting question via email yesterday. The question is fairly simple. The answer, not so much... So, rather than reply in an email, I figured that I'd write a post about it instead. The question, simply stated, is: "When comparing a float to an integer using ==, where does the conversion happen?"
</blockquote>
<p>
He starts with a super simple piece of test code that compares an integer (1) to a float (1.0) and walks through the process PHP takes to perform the comparison (with a double equals "=="). He talks about opcode handlers, the "fast equal function" and how it handles the casting from one type to another, C source highlights included.
</p>]]></description>
      <pubDate>Thu, 19 Jul 2012 10:11:48 -0500</pubDate>
    </item>
  </channel>
</rss>
