3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<html> <body> <table style="width: 100%"> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table> </body> </html>'; $xmlObj = simplexml_load_string($xml); echo json_encode($xmlObj);
Output for git.master_jit, git.master, rfc.property-hooks
{"body":{"table":{"@attributes":{"style":"width: 100%"},"tr":[{"th":["Firstname","Lastname","Age"]},{"td":["Jill","Smith","50"]},{"td":["Eve","Jackson","94"]}]}}}

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
69.97 ms | 405 KiB | 5 Q