Convert XML to PHP Array Online

Form for XML converting

This form allows you convert XML to PHP Array, paste or upload your XML file below:

Your result can be seen below.

Result of XML conversion to PHP Array

Move to "Paste Code" for Save it

About XML conversion to PHP Array

About XML conversion to PHP Array

The Convert XML to PHP array was created for online converting XML into appropriate PHP type as Array. This can come in handy for testing or debugging your XML, also for fast formatting and adding an array of PHP to your config or anywhere else.

How it Works?

Just paste your XML to the textarea above and click to the button "Convert" and you will get PHP array in the next textarea.

Example of XML conversion to PHP Array

<?xml version="1.0" encoding="UTF-8"?>
		<title>Online Web Tools</title>
array (
  'result' =>
  array (
    'website' =>
    array (
      'domain' => '',
      'title' => 'Online Web Tools',
After the conversion, you can apply the PHP array to your project or use it for some other purpose.

Did you like this tool? You can donate to us. This will help us improve our free web tools.