title: Porting php 5.4 to 5.3
body: <p>Is there any automation tool for converting a php 5.4 script back to 5.3? Mostly there are new style arrays causing problems.</p>
  
  <p>This:</p>
  
  <pre><code>&lt;?php
  $x = [1, 2, 3];
  $y = [
    'a' =&gt; [1,2],
    'b' =&gt; 'c',
  ];
  function ff($x = []) { ...}
  </code></pre>
  
  <p>Should be converted to this:</p>
  
  <pre><code>&lt;?php
  $x = array(1, 2, 3);
  $y = array(
    'a' =&gt; array(1,2),
    'b' =&gt; 'c',
  );
  function ff($x = array()) { ...}
  </code></pre>
  
  <p>Other backward compatibility issues are just a few and can be fixed by hand. I'm very bad at language processing, has anyone already done this? the converter doesn't need to be PHP. python, Java, ... are all file (I just prefer python, that's all).</p>