add PHP 5.3 support
add example for new stats object