Regarding strcspn found this so it's definately 4.3.0+.

That way if could select which implementation of the state parser it was going to use depending upon which version of PHP was running. (really just picking which set of scan* methods to use). It could select the fastest version allowed by the current version of PHP.
Like the way that sounds. More soon...