PHP duplicate 5.5 tree for 5.6