3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlString = '<properties><property name="width">20</property><property name="height">100</property></properties>'; echo json_encode(simplexml_load_string($xmlString));

preferences:
30.72 ms | 405 KiB | 5 Q