{"id":3780,"date":"2022-06-28T12:45:42","date_gmt":"2022-06-28T12:45:42","guid":{"rendered":"http:\/\/the-codest.localhost\/blog\/two-reasons-you-should-not-use-php\/"},"modified":"2026-03-11T05:57:55","modified_gmt":"2026-03-11T05:57:55","slug":"kaks-pohjust-miks-te-ei-peaks-kasutama-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/et\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Kaks p\u00f5hjust, miks te ei peaks kasutama PHP"},"content":{"rendered":"<p>Aastate jooksul on paljud inimesed k\u00fcsinud minult, miks ma viitsin <strong>programmeerimine <a href=\"https:\/\/thecodest.co\/et\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>, ja aastaid olen kuulnud nagu mantrat kaks korduvat argumenti, miks ma peaksin l\u00f5petama ja hakkama kirjutama kommertstarkvara sellistes keeltes nagu <a href=\"https:\/\/thecodest.co\/et\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> v\u00f5i C#.<br>\u200b<br>T\u00e4na ma tsiteerin neid argumente ja p\u00fc\u00fcan muuta teie suhtumist <strong>PHP<\/strong> v\u00e4hemalt natuke. Jah, selle artikli pealkiri on absurdne clickbait.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176123016-0c45e1e9-5c0a-48f2-ae4a-54d8960003a1.png\" alt=\"pilt\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP sureb.<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> sureb aasta-aastalt. Kunagi k\u00f5ige populaarsem <a href=\"https:\/\/thecodest.co\/et\/blog\/find-your-ideal-stack-for-web-development\/\">veeb<\/a> keel kaotab n\u00fc\u00fcd kuude kaupa populaarsust, enamasti selleks, et <a href=\"https:\/\/thecodest.co\/et\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>Kui vaadata numbreid, on t\u00f5de kainestav! Viimase aasta jooksul, <strong>PHP<\/strong> kaotas oma osakaalust veebi taustakeelena h\u00e4mmastavalt 1,6%.<\/p>\n\n\n\n<p>\u200b<br>Kui <strong>PHP<\/strong> j\u00e4tkab seda langustrendi, 18 aasta jooksul <strong>PHP<\/strong> langeb alla 50% backend veebitehnoloogia!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Ajaloolised suundumused veebisaitide serveripoolsete programmeerimiskeelte kasutamisstatistikas\"><\/p>\n\n\n\n<p>\u200b<br>Aga okei, nalja k\u00f5rvale j\u00e4ttes - kuigi numbrid on reaalsed <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">nagu teatas W3CTechs<\/a>.<\/p>\n\n\n\n<p>Esimene mainimine, et <strong>PHP<\/strong> on suremas v\u00f5ib leida veebis alates 2013. aastast. Toona tarkvara Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">avaldas artikli<\/a> (mida ma muide v\u00e4ga soovitan!), \u00f6eldes, et PHP sureb, sest see ei toeta pikaajalisi protsesse ja kuna tal puudub as\u00fcnkroonsus.<\/p>\n\n\n\n<p>\u200b<br>Ja see on fakt, <strong>PHP<\/strong> ei ole selleks loodud!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>kui sul on ainult haamer, siis k\u00f5ik n\u00e4eb v\u00e4lja nagu nael.<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Aga tagasi numbrite juurde - vaatame eelmise aasta tulemusi. <a href=\"https:\/\/thecodest.co\/et\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">andmed<\/a> aadressil <strong>PHP<\/strong> Packagisti pakettides kasutatavad versioonid. Viimased andmed on k\u00e4ttesaadavad l\u00e4htekohas <a href=\"https:\/\/packagist.org\/php-statistics\" rel=\"nofollow\">packagist.org<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176107004-6c0b6061-ff6b-4fcd-a6e0-3cdec01fd411.png\" alt=\"Pakettide paigaldamine PHP v\u00e4iksema versiooni graafiku j\u00e4rgi\" title=\"Pakettide paigaldamine PHP v\u00e4hemt\u00e4htsate versioonide kaupa\"\/><\/figure>\n\n\n\n<p>\u200b<br>Kas see on sureva programmeerimiskeele uute versioonide vastuv\u00f5tuk\u00f5ver?<\/p>\n\n\n\n<p>\u200b<br>Kui sellest ei piisa, siis kontrollime meie \"PHP surmajuhtumite arvu\" teiste keelte suhtes.<br>\u200b<\/p>\n\n\n\n<p>Anal\u00fc\u00fcsi andmed on v\u00f5etud j\u00e4rgmistest allikatest<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, mis genereerib graafiku arvu <code>git push<\/code> keele kohta Githubile alates 2012. aastast, vastavalt skeemile - \"Joonegraafiku keelte protsentuaalne jaotus n\u00e4itab 10 parimat (v\u00f5i k\u00e4sitsi valitud) keelt alates 2012\/Q2\".<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176108444-c68dce87-ba23-4ab5-92de-5fdc961ca0f0.png\" alt=\"programmeerimiskeele protsentuaalse jaotuse graafik\" title=\"programmeerimiskeele protsentuaalne jaotus \"\/><\/figure>\n\n\n\n<p>\u200b<br>Nagu n\u00e4ete <strong>PHP<\/strong> samuti muudes populaarsetes keeltes nagu <a href=\"https:\/\/thecodest.co\/et\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/et\/dictionary\/what-is-python-good-for\/\">Python<\/a> on Githubis viimastel aastatel kogenud m\u00e4rkimisv\u00e4\u00e4rset populaarsuse langust, kuid seal on t\u00f5usutrend ja me ootame, et nad j\u00f5uavad p\u00e4rast pikemat k\u00fclgsuunalist perioodi taas k\u00f5rgetele positsioonidele. <em>(see ei ole investeerimisn\u00f5ustamine)<\/em><\/p>\n\n\n\n<p>\u200b<br>Esialgne <code>hype<\/code> Javascripti keele puhul on n\u00e4ha samal graafikul. J\u00e4tan j\u00e4reldused ja selle anal\u00fc\u00fcsi juba teile, lugupeetud lugeja.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"pilt\"><\/p>\n\n\n\n<p>\u200b<br>Aga samas - surev keel ei tohiks ju suurendada programmeerijate t\u00f6\u00f6pakkumiste arvu, eks ole?<br>\u200b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109644-6e80387f-dbfb-4f87-b910-c59ee23de450.png\" alt=\"pilt\"\/><\/figure>\n\n\n\n<p>\u200b<br>Selle artikli kirjutamise hetkel saan valida 171 t\u00f6\u00f6pakkumise hulgast \u00fches juhtivas t\u00f6\u00f6portaalis aastal <a href=\"https:\/\/thecodest.co\/et\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Poola<\/a>, millest koguni 50 on m\u00f5eldud juunioridele. <strong>PHP<\/strong> sureb, eks?<br>\u200b<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115563-64e70819-b525-4071-a19d-bac019b4cd28.png\" alt=\"PHP meme - php sureb \" title=\"PHP on surev meem \"\/><\/figure>\n\n\n\n<p>Ja kui r\u00e4\u00e4kida rahast... kas teadsite, et <strong>PHP<\/strong> ja selle allikas <a href=\"https:\/\/thecodest.co\/et\/dictionary\/what-is-code-refactoring\/\">kood<\/a> on alates novembrist 2021 s\u00e4ilitanud <em>s\u00f5ltumatu avatud l\u00e4htekoodiga<\/em> kogukond<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">Sihtasutus PHP<\/a> mis <strong>maksab m\u00e4rkimisv\u00e4\u00e4rset raha<\/strong> OpenSource'i arendajatele panuse eest <code>php-src<\/code>?<\/p>\n\n\n\n<p>Erinevalt teistest keeltest ja raamistikest, mis on sageli suurte ettev\u00f5tete omanduses, on p\u00f5hiline arenduse <a href=\"https:\/\/thecodest.co\/et\/dictionary\/how-to-lead-software-development-team\/\">meeskond<\/a> makstakse otse sihtasutuse kontolt, mida haldavad eraettev\u00f5tete, nagu JetBrains ja Symfony Corp, aga ka<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">\u00fcksikute arendajate v\u00e4ikesed panused<\/a>.<\/p>\n\n\n\n<p>Avatud l\u00e4htekood kogu oma hiilguses!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP on kohutav<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Jah, see v\u00e4ide tuleb alati nende arendajate suust, kes on tutvunud tugevalt t\u00fcpiseeritud, v\u00f5rreldavate keeltega.<br>\u200b<br>Vaadates graafikut andmete kogutud ajal<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow uuring<\/a> 2021. aastast, n\u00e4ete, et koguni 10 834 vastajat, kes esindavad peaaegu 60% koguarvust, pidasid PHP \"kohutavaks\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"pilt\"><br>\u200b<br>Nagu vanakooli <strong>PHP programmeerija<\/strong>, ma saan aru, miks see nii on. Mulle meenub kohe klassikaline n\u00e4ide m\u00e4luprobleemide kohta <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>&lt;?php<\/strong>\n\nklass FOO {\n  public $f;\n}\n\nclass BAR {\n  public $f;\n}\n\nwhile(1) {\n  $a = new FOO();\n  $b = new BAR();\n  $a-&gt;f = $b;\n  $b-&gt;f = $a;\n  print \"Memory usage: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>Asjatundmatutele - jah, \u00fclaltoodud kood p\u00f5hjustab m\u00e4luvea. Ja on veel midagi. Alates meetodite idiootlikust nimetamisest ja t\u00e4ielikust loogika puudumisest nende parameetrite j\u00e4rjekorras (jah, me k\u00f5ik armastame <code>str_<\/code> ja <code>array_<\/code>) PHP k\u00f5ige kuulsamale veale <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP on t\u00e4is vanade versioonide veidrusi ja vigu. See ei t\u00e4henda, et see, mida me kuulsime <strong>PHP<\/strong> m\u00f5ned aastad tagasi, on endiselt t\u00f5si. Keel on teinud l\u00e4bi tohutu metamorfoosi ja t\u00e4na vaatan hea meelega oma objektide definitsioone:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly class NotificationEvent\n{\n    public function __construct(\n        public string $context,\n        public User $user,\n        public string $body,\n        public DateTime $issuedAt,\n    ) {}\n}<\/code><\/pre>\n\n\n\n<p>Lisaks sellele on <strong>PHP \u00f6kos\u00fcsteem<\/strong> on tohutult kasvanud ja meil on n\u00fc\u00fcd uskumatud v\u00f5imalused luua head, k\u00f5rgelt t\u00fcpiseeritud ja h\u00e4sti testitud koodi. Me saame kasutada <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">DDD rakenduste arendamiseks<\/a> ilma suuremate probleemideta ja me saame PHP s\u00fcnkroonimise probleemi lahendada, kasutades Message Bus'i.<\/p>\n\n\n\n<p>Ja kuigi ma ise ei usu, et <strong>PHP<\/strong> sobib pikaealiste backend-protsesside loomiseks ja on tohutu j\u00f5udlusprobleemiga, kui tegemist on oleku s\u00fcnkroniseerimisega, olen ka<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">l\u00f5i PHP konsoolim\u00e4ngu<\/a> kasutades Symfony + <a href=\"https:\/\/thecodest.co\/et\/dictionary\/docker-developer\/\">Docker<\/a> omal k\u00e4el n\u00e4itena, et PHP v\u00f5ib siiski omada ebatraditsioonilisi kasutusv\u00f5imalusi.<\/p>\n\n\n\n<p>\u200b<br>Teine <strong>PHP eelis<\/strong> on selle madal sisenemisbarj\u00e4\u00e4r uute arendajate jaoks. Kahe populaarse raamistiku dokumentatsioon Symfony ja<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> ja <strong>PHP<\/strong> dokumentatsioon ise on piisav, et siseneda nende abil backend maailma. Maailm, mis ei ole t\u00e4iuslik PHP, kuid v\u00f5imaldab palju. Kasutades t\u00e4iendavaid raamatukogusid nagu <a href=\"https:\/\/thecodest.co\/et\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova on meil v\u00f5imalik luua peaaegu k\u00f5iki meie s\u00fcsteemi komponente vaid kahe k\u00e4suga.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Afterglow<\/h2>\n\n\n\n<p>\u200b<br>Kas <strong>PHP<\/strong> suremas?<\/p>\n\n\n\n<p>Ei, kuid sellel on probleem kuvandiga ja selle parandamiseks on vaja palju t\u00f6\u00f6d teha. Meie, programmeerijad, peame seda t\u00f6\u00f6d tegema, \u00f5petades uut p\u00f5lvkonda ja andes edasi parimaid tavasid artiklite, raamatukogude ja n\u00e4pun\u00e4idete kujul.<\/p>\n\n\n\n<p>Keelena, mis on olnud <a href=\"https:\/\/thecodest.co\/et\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">turg<\/a> kaksk\u00fcmmend aastat, mis on \u00fcle elanud juba rohkem kui \u00fche <code>hype<\/code> (m\u00e4letate Objective-C?) Ma arvan, et see tuleb toime ja leiab oma ni\u0161i.<br>\u200b<br>Ja kes teab, v\u00f5ib-olla osutuvad minu ennustused \u00f5igeks ja PHP 10.x hakkab kahe aasta p\u00e4rast j\u00e4lle \u00f5itsema?<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/thecodest.co\/contact\"><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/interested_in_cooperation_.png\" alt=\"koost\u00f6\u00f6b\u00e4nner\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>PHP arendajana m\u00e4letan veel PHP4 p\u00e4evi, esimest (vabatahtlikku!) GC rakendamist PHP5-s, ja ma elasin l\u00e4bi PHP7 tuleku _h\u00fcpe_ ja selle tagaj\u00e4rjed.<\/p>","protected":false},"author":2,"featured_media":3781,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3780","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Two Reasons You Should Not Use PHP - The Codest<\/title>\n<meta name=\"description\" content=\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thecodest.co\/et\/blogi\/kaks-pohjust-miks-te-ei-peaks-kasutama-php\/\" \/>\n<meta property=\"og:locale\" content=\"et_EE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Two Reasons You Should Not Use PHP\" \/>\n<meta property=\"og:description\" content=\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thecodest.co\/et\/blogi\/kaks-pohjust-miks-te-ei-peaks-kasutama-php\/\" \/>\n<meta property=\"og:site_name\" content=\"The Codest\" \/>\n<meta property=\"article:published_time\" content=\"2022-06-28T12:45:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-11T05:57:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"540\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"thecodest\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"thecodest\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutit\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"},\"author\":{\"name\":\"thecodest\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\"},\"headline\":\"Two Reasons You Should Not Use PHP\",\"datePublished\":\"2022-06-28T12:45:42+00:00\",\"dateModified\":\"2026-03-11T05:57:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"},\"wordCount\":999,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"articleSection\":[\"Software Development\"],\"inLanguage\":\"et\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\",\"name\":\"Two Reasons You Should Not Use PHP - The Codest\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"datePublished\":\"2022-06-28T12:45:42+00:00\",\"dateModified\":\"2026-03-11T05:57:55+00:00\",\"description\":\"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#breadcrumb\"},\"inLanguage\":\"et\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/05\\\/why-you-php-is-not-worth-it_.png\",\"width\":960,\"height\":540},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thecodest.co\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two Reasons You Should Not Use PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#website\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"name\":\"The Codest\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thecodest.co\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"et\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"contentUrl\":\"https:\\\/\\\/thecodest.co\\\/app\\\/uploads\\\/2024\\\/03\\\/thecodest-logo.svg\",\"width\":144,\"height\":36,\"caption\":\"The Codest\"},\"image\":{\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/pl.linkedin.com\\\/company\\\/codest\",\"https:\\\/\\\/clutch.co\\\/profile\\\/codest\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#\\\/schema\\\/person\\\/7e3fe41dfa4f4e41a7baad4c6e0d4f76\",\"name\":\"thecodest\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"et\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g\",\"caption\":\"thecodest\"},\"url\":\"https:\\\/\\\/thecodest.co\\\/et\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Kaks p\u00f5hjust, miks te ei peaks kasutama PHP - The Codest","description":"PHP arendajana m\u00e4letan veel PHP4 p\u00e4evi, esimest (vabatahtlikku!) GC rakendamist PHP5-s, ja ma elasin l\u00e4bi PHP7 tuleku _h\u00fcpe_ ja selle tagaj\u00e4rjed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thecodest.co\/et\/blogi\/kaks-pohjust-miks-te-ei-peaks-kasutama-php\/","og_locale":"et_EE","og_type":"article","og_title":"Two Reasons You Should Not Use PHP","og_description":"As a PHP developer I still remember the days of PHP4, the first (optional!) GC implementation in PHP5, and I lived through the _hype_ of the advent of PHP7 and its ramifications.","og_url":"https:\/\/thecodest.co\/et\/blogi\/kaks-pohjust-miks-te-ei-peaks-kasutama-php\/","og_site_name":"The Codest","article_published_time":"2022-06-28T12:45:42+00:00","article_modified_time":"2026-03-11T05:57:55+00:00","og_image":[{"width":960,"height":540,"url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","type":"image\/png"}],"author":"thecodest","twitter_card":"summary_large_image","twitter_misc":{"Written by":"thecodest","Est. reading time":"7 minutit"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#article","isPartOf":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"},"author":{"name":"thecodest","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76"},"headline":"Two Reasons You Should Not Use PHP","datePublished":"2022-06-28T12:45:42+00:00","dateModified":"2026-03-11T05:57:55+00:00","mainEntityOfPage":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"},"wordCount":999,"commentCount":0,"publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"image":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","articleSection":["Software Development"],"inLanguage":"et","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/","url":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/","name":"Kaks p\u00f5hjust, miks te ei peaks kasutama PHP - The Codest","isPartOf":{"@id":"https:\/\/thecodest.co\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"image":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage"},"thumbnailUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","datePublished":"2022-06-28T12:45:42+00:00","dateModified":"2026-03-11T05:57:55+00:00","description":"PHP arendajana m\u00e4letan veel PHP4 p\u00e4evi, esimest (vabatahtlikku!) GC rakendamist PHP5-s, ja ma elasin l\u00e4bi PHP7 tuleku _h\u00fcpe_ ja selle tagaj\u00e4rjed.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"et","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#primaryimage","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/05\/why-you-php-is-not-worth-it_.png","width":960,"height":540},{"@type":"BreadcrumbList","@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thecodest.co\/"},{"@type":"ListItem","position":2,"name":"Two Reasons You Should Not Use PHP"}]},{"@type":"WebSite","@id":"https:\/\/thecodest.co\/#website","url":"https:\/\/thecodest.co\/","name":"The Codest","description":"","publisher":{"@id":"https:\/\/thecodest.co\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thecodest.co\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"et"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/","url":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","contentUrl":"https:\/\/thecodest.co\/app\/uploads\/2024\/03\/thecodest-logo.svg","width":144,"height":36,"caption":"The Codest"},"image":{"@id":"https:\/\/thecodest.co\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/pl.linkedin.com\/company\/codest","https:\/\/clutch.co\/profile\/codest"]},{"@type":"Person","@id":"https:\/\/thecodest.co\/#\/schema\/person\/7e3fe41dfa4f4e41a7baad4c6e0d4f76","name":"thecodest","image":{"@type":"ImageObject","inLanguage":"et","@id":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5dbfe6a1e8c86e432e8812759e34e6fe82ebac75119ae3237a6c1311fa19caf4?s=96&d=mm&r=g","caption":"thecodest"},"url":"https:\/\/thecodest.co\/et\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/et\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}