Convert a YAML snippet to a PHP formatted array at:
admin/config/development/yaml2php

This is a development helper module to generate a code snippet to copy-paste into your own code. Look at the example below.