EDIT: Disregard this, invalid test. Iterating 1M times instead of 1k irons out the wrinkles.
Ever wondered whether it's faster to directly cast a variable versus invoke a casting function in PHP?
I wondered, so I wrote a script that calls (bool) $int 1000 times, then invokes boolval($int) 1000 times. It turns out that boolval() is between 15% and 250% faster than an explicit cast.
I'll bet the same is true for intval(), floatval(), and strval().
