Convert XML to PHP Array Online

Form for XML converting

This form allows you convert XML to PHP Array:

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.

Do you find this tool useful? Then share it with your friends or colleagues. This will help us to make our free web tools better.