When comparing PHP vs Krita, the Slant community recommends Krita for most people. In the question“What are the best web design tools?” Krita is ranked 2nd while PHP is ranked 26th. The most important reason people chose Krita is:
All the most used and useful tools are easy to find in Krita's UI and are often just one click away. They are not hidden behind menus or dropdowns.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro One of the most common languages
According to the 2015 Stack Overflow Developer Survey (26,086 people surveyed), PHP was the 5th most popular/used language at 29.7%.
Pro Lots of tutorials online
Pro Used by most common CMS platforms
Many clients are looking for an easy-to-update web site that's flexible and free. Drupal and Wordpress fill those needs very well.
Pro Most prominent language for web applications
Part of the de facto standard web application stack.
Pro Great third-party package manager
PHP standard library is somewhat subpar, but if you need plugins, language features, composer has them all( you can even puzzle together a custom framework from composer).
Pro Fast
Since 7.x was released, PHP has become a pretty fast language.
Pro Lots of PHP frameworks available which help with development
PHP people love frameworks, and with frameworks such as Laravel, you can build a web app or API really fast (Facades, ORMs, scaffolding etc.)
Pro Great documentation
Pro Easy to use layout
All the most used and useful tools are easy to find in Krita's UI and are often just one click away. They are not hidden behind menus or dropdowns.
Pro Constantly updated
Krita is getting constant releases with updates and bug fixes. New features are added at a pace that far surpasses the other alternatives.
Pro Free and open source
Krita is completely free and open source. They have raised a couple of successful Kickstarters in the past to get the initial financing and now they are accepting donations.
Pro Developed in part by KDE, which has a great community and therefore great support.
KDE has a long history of making solid applications.
Pro Amazing support for displaying brushes
Krita's preset brushes are one of the default dockers. Each brush has a preview on mouseover that shows a detailed view of the type of brush involved. All the brushes also have useful and descriptive names such as "HP Pencil" or "Textured Fuzzy".
Pro Very customizable
Although the UI is rather busy, Krita is very customizable. The editing window can be themed and the sidebar can be customized extensively throw many dockers or panes.
Pro Easy editing in a tiled view
Tiled view that shows your image tiled in the editor, and permits you to edit it as you are seeing it tiled. If the brush passes out of your texture, it will just automatically wrap back the painting to the other side of the original texture, while permitting you to paint and see the results on any of the tiled "clones" (the shortcut key to activate this is w by default).
Cons
Con Poorly designed language
Despite its widespread use, PHP is generally looked upon poorly from a design point of view. The consistency of function names and function argument order, lazily and borderline non-functional implementation of object oriented programming, can only receive requests via POST methods, slow version adoption (the PHP you learn right now may not work on every webserver you'll work on), and a focus on "hacking things together" rather than "doing it right". These are all very common complaints when it comes to working with PHP. While not a bad language to learn, PHP is not at all a good language to learn first, as it will probably teach bad habits.
Con Immense catalog of insecure frameworks
The most serious security problems in websites on the web today are almost universally found in popular PHP frameworks, CMS platforms, libraries and code samples, almost all stemming from poor language design, bad tutorials and awful resources.
Con After python, probably one of the worst languages ever
Con Poorly designed language, awful syntax & luckily on the decline
Nobody in their right mind is using PHP for new software, if you decide to learn it as your first language you'll be stuck working in teams with old developers who have had no interest in the computer programming field since they landed their first job while maintaining some 2000 era archaic website codebase.
Con Most tutorials are out of date
A lot of very bad tutorials are still widely circulated among beginners, and these tutorials teach very poor programming practices.
Con Most resources are poorly-written
Few resources exemplify the "correct" or secure use of features.
Con Interpreter being too permissive
If you forget the dollar sign, the variable name will be converted to a string.
Con New features are not tested thoroughly
Since releases are so often and with little time between them, usually new features are not tested a lot and this can bring a lot of bugs with them. Which fortunately are quickly patched in the next release.
Con Documentation is lacking
Krita's official documentation is incomplete in some areas, especially for new features that are constantly added. But this is compensated with it's great design and usability which makes it easier to understand how things work.
Con Poor touch controls
They are still pretty much a WIP. But they are getting there.