3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new SimpleXMLElement("<foo>123</foo>"); var_dump(bin2hex(chr($a)));

preferences:
38.89 ms | 406 KiB | 5 Q