3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xmlIterator = new SimpleXMLIterator('<books><book>PHP Basics</book><book>XML Basics</book></books>'); $xmlIterator->rewind(); var_dump($xmlIterator->current());
Output for 5.3.7 - 5.3.29, 5.5.27 - 5.5.35, 5.6.11 - 7.1.0
object(SimpleXMLIterator)#2 (1) { [0]=> string(10) "PHP Basics" }
Output for 5.4.0 - 5.5.26, 5.6.7 - 5.6.10
object(SimpleXMLIterator)#2 (0) { }