3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = simplexml_load_string('<foo><bar>1</bar></foo>'); $y = clone $x; unset($y->bar); echo $x->asXML(); echo $y->asXML();
Output for 5.3.20 - 7.2.0
<?xml version="1.0"?> <foo><bar>1</bar></foo> <foo/>