3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new ReflectionClass('SimpleXmlElement'); var_dump($x->getInterfaces());
based on mRN5N
Output for 7.0.0 - 7.2.0
array(1) { ["Traversable"]=> object(ReflectionClass)#2 (1) { ["name"]=> string(11) "Traversable" } }
Output for 5.3.19 - 5.6.28
array(1) { ["Traversable"]=> &object(ReflectionClass)#2 (1) { ["name"]=> string(11) "Traversable" } }