{"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":"dva-duvody-proc-byste-nemeli-pouzivat-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/cs\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Dva d\u016fvody, pro\u010d byste nem\u011bli pou\u017e\u00edvat PHP"},"content":{"rendered":"<p>V pr\u016fb\u011bhu let se m\u011b mnoho lid\u00ed ptalo, pro\u010d se obt\u011b\u017euji. <strong>programov\u00e1n\u00ed v <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>, a po mnoho let jsem jako mantru sl\u00fdchal dva opakuj\u00edc\u00ed se argumenty, pro\u010d bych m\u011bl p\u0159estat a za\u010d\u00edt ps\u00e1t komer\u010dn\u00ed software v jazyc\u00edch, jako je <a href=\"https:\/\/thecodest.co\/cs\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> nebo C#.<br>\u200b<br>Dnes budu citovat tyto argumenty a pokus\u00edm se zm\u011bnit v\u00e1\u0161 postoj k. <strong>PHP<\/strong> alespo\u0148 trochu. Ano, nadpis tohoto \u010dl\u00e1nku je absurdn\u00ed 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=\"obr\u00e1zek\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP um\u00edr\u00e1<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> rok od roku um\u00edr\u00e1. Kdysi nejobl\u00edben\u011bj\u0161\u00ed <a href=\"https:\/\/thecodest.co\/cs\/blog\/find-your-ideal-stack-for-web-development\/\">web<\/a> jazyk nyn\u00ed ztr\u00e1c\u00ed na popularit\u011b m\u011bs\u00edc od m\u011bs\u00edce, v\u011bt\u0161inou kv\u016fli <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>Kdy\u017e se pod\u00edv\u00e1te na \u010d\u00edsla, zjist\u00edte, \u017ee pravda je st\u0159\u00edzliv\u00e1! Za posledn\u00ed rok, <strong>PHP<\/strong> ztratil neuv\u011b\u0159iteln\u00fdch 1,6% ze sv\u00e9ho pod\u00edlu jako backendov\u00fd jazyk webu.<\/p>\n\n\n\n<p>\u200b<br>Pokud <strong>PHP<\/strong> pokra\u010duje tento klesaj\u00edc\u00ed trend, za 18 let <strong>PHP<\/strong> klesne pod 50% backendov\u00e9 webov\u00e9 technologie!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Historick\u00e9 trendy ve statistik\u00e1ch pou\u017e\u00edv\u00e1n\u00ed programovac\u00edch jazyk\u016f na stran\u011b serveru pro webov\u00e9 str\u00e1nky\"><\/p>\n\n\n\n<p>\u200b<br>Ale dob\u0159e, vtipy stranou - i kdy\u017e \u010d\u00edsla jsou skute\u010dn\u00e1. <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">jak uv\u00e1d\u00ed W3CTechs<\/a>.<\/p>\n\n\n\n<p>Prvn\u00ed zm\u00ednka o tom, \u017ee <strong>PHP<\/strong> um\u00edr\u00e1, lze nal\u00e9zt na webu od roku 2013. Tehdy Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">zve\u0159ejnil \u010dl\u00e1nek<\/a> (kter\u00fd mimochodem v\u0159ele doporu\u010duji!), \u017ee PHP zem\u0159e, proto\u017ee nepodporuje dlouhotrvaj\u00edc\u00ed procesy a proto\u017ee mu chyb\u00ed asynchronnost.<\/p>\n\n\n\n<p>\u200b<br>A to je fakt, <strong>PHP<\/strong> k tomu nebyl stvo\u0159en!<\/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>kdy\u017e m\u00e1te jen kladivo, v\u0161echno vypad\u00e1 jako h\u0159eb\u00edk.<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Ale zp\u011bt k \u010d\u00edsl\u016fm - pod\u00edvejme se na lo\u0148sk\u00fd rok. <a href=\"https:\/\/thecodest.co\/cs\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">data<\/a> na adrese <strong>PHP<\/strong> verze pou\u017e\u00edvan\u00e9 v bal\u00ed\u010dc\u00edch Packagist. Nejnov\u011bj\u0161\u00ed \u00fadaje jsou k dispozici na zdrojov\u00fdch str\u00e1nk\u00e1ch <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=\"Instalace bal\u00ed\u010dk\u016f podle grafu minoritn\u00edch verz\u00ed PHP\" title=\"Instalace bal\u00ed\u010dk\u016f podle men\u0161\u00ed verze PHP\"\/><\/figure>\n\n\n\n<p>\u200b<br>Je toto k\u0159ivka p\u0159ijet\u00ed nov\u00fdch verz\u00ed vym\u00edraj\u00edc\u00edho programovac\u00edho jazyka?<\/p>\n\n\n\n<p>\u200b<br>Pokud v\u00e1m to nesta\u010d\u00ed, porovnejte na\u0161i \"\u00famrtnost PHP\" s jin\u00fdmi jazyky.<br>\u200b<\/p>\n\n\n\n<p>\u00dadaje pro anal\u00fdzu jsou p\u0159evzaty z<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, kter\u00fd vygeneruje graf s po\u010dtem <code>git push<\/code> na jazyk do Githubu od roku 2012, podle sch\u00e9matu - \"Procentu\u00e1ln\u00ed rozlo\u017een\u00ed jazyk\u016f v \u010d\u00e1rov\u00e9m grafu ukazuje 10 nej\u010dast\u011bj\u0161\u00edch (nebo ru\u010dn\u011b vybran\u00fdch) jazyk\u016f od roku 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=\"graf procentu\u00e1ln\u00edho rozlo\u017een\u00ed programovac\u00edch jazyk\u016f\" title=\"procentu\u00e1ln\u00ed rozlo\u017een\u00ed programovac\u00edch jazyk\u016f \"\/><\/figure>\n\n\n\n<p>\u200b<br>Jak vid\u00edte <strong>PHP<\/strong> stejn\u011b jako dal\u0161\u00ed popul\u00e1rn\u00ed jazyky, jako je <a href=\"https:\/\/thecodest.co\/cs\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/what-is-python-good-for\/\">Python<\/a> zaznamenaly v posledn\u00edch letech na Githubu v\u00fdrazn\u00fd pokles popularity, nicm\u00e9n\u011b je zde patrn\u00fd vzestupn\u00fd trend a o\u010dek\u00e1v\u00e1me, \u017ee se po del\u0161\u00edm obdob\u00ed stagnace vr\u00e1t\u00ed na vysok\u00e9 pozice. <em>(nejedn\u00e1 se o investi\u010dn\u00ed poradenstv\u00ed)<\/em><\/p>\n\n\n\n<p>\u200b<br>Po\u010d\u00e1te\u010dn\u00ed <code>humbuk<\/code> pro jazyk Javascript lze vid\u011bt ve stejn\u00e9m grafu. Z\u00e1v\u011bry a jejich anal\u00fdzu ji\u017e nech\u00e1m na v\u00e1s, mil\u00ed \u010dten\u00e1\u0159i.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"obr\u00e1zek\"><\/p>\n\n\n\n<p>\u200b<br>Ale na druhou stranu - um\u00edraj\u00edc\u00ed jazyk by nem\u011bl m\u00edt tendenci zvy\u0161ovat po\u010det pracovn\u00edch nab\u00eddek pro program\u00e1tory, \u017ee?<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=\"obr\u00e1zek\"\/><\/figure>\n\n\n\n<p>\u200b<br>V okam\u017eiku psan\u00ed tohoto \u010dl\u00e1nku si mohu vyb\u00edrat ze 171 nab\u00eddek pr\u00e1ce na jednom z p\u0159edn\u00edch pracovn\u00edch port\u00e1l\u016f v \u010cesk\u00e9 republice. <a href=\"https:\/\/thecodest.co\/cs\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polsko<\/a>, z nich\u017e a\u017e 50 je ur\u010deno pro juniory. <strong>PHP<\/strong> um\u00edr\u00e1, \u017ee?<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 um\u00edr\u00e1 \" title=\"PHP je um\u00edraj\u00edc\u00ed meme \"\/><\/figure>\n\n\n\n<p>A kdy\u017e u\u017e mluv\u00edme o pen\u011bz\u00edch... v\u011bd\u011bli jste, \u017ee <strong>PHP<\/strong> a jeho zdroj <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/what-is-code-refactoring\/\">k\u00f3d<\/a> je od listopadu 2021 udr\u017eov\u00e1na <em>nez\u00e1visl\u00fd Open Source<\/em> komunita<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">Nadace PHP<\/a> kter\u00fd <strong>plat\u00ed zna\u010dn\u00e9 pen\u00edze<\/strong> v\u00fdvoj\u00e1\u0159\u016fm OpenSource za p\u0159\u00edsp\u011bvky do <code>php-src<\/code>?<\/p>\n\n\n\n<p>Na rozd\u00edl od jin\u00fdch jazyk\u016f a framework\u016f, kter\u00e9 jsou \u010dasto ve vlastnictv\u00ed velk\u00fdch spole\u010dnost\u00ed, je j\u00e1dro v\u00fdvoje <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/how-to-lead-software-development-team\/\">t\u00fdm<\/a> je hrazen p\u0159\u00edmo z \u00fa\u010dtu nadace, kter\u00fd je veden z p\u0159\u00edsp\u011bvk\u016f soukrom\u00fdch spole\u010dnost\u00ed, jako jsou JetBrains a Symfony Corp, ale tak\u00e9 z p\u0159\u00edsp\u011bvk\u016f<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">mal\u00e9 p\u0159\u00edsp\u011bvky od jednotliv\u00fdch v\u00fdvoj\u00e1\u0159\u016f<\/a>.<\/p>\n\n\n\n<p>Open Source v cel\u00e9 sv\u00e9 kr\u00e1se!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP je stra\u0161n\u00fd<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Ano, tento argument v\u017edy zazn\u00edv\u00e1 z \u00fast v\u00fdvoj\u00e1\u0159\u016f, kte\u0159\u00ed se sezn\u00e1mili se siln\u011b typovan\u00fdmi, srovnateln\u00fdmi jazyky.<br>\u200b<br>P\u0159i pohledu na graf \u00fadaj\u016f shrom\u00e1\u017ed\u011bn\u00fdch b\u011bhem<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">Pr\u016fzkum StackOverflow<\/a> 2021, m\u016f\u017eete vid\u011bt, \u017ee a\u017e 10 834 respondent\u016f, co\u017e p\u0159edstavuje t\u00e9m\u011b\u0159 60% z celkov\u00e9ho po\u010dtu, pova\u017euje PHP za \"hrozn\u00fd\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"obr\u00e1zek\"><br>\u200b<br>Jako \u010dlov\u011bk ze star\u00e9 \u0161koly <strong>Program\u00e1tor PHP<\/strong>, ch\u00e1pu, pro\u010d tomu tak je. Okam\u017eit\u011b se mi vybav\u00ed klasick\u00fd p\u0159\u00edklad probl\u00e9m\u016f s pam\u011bt\u00ed ve <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>&lt;?php<\/strong>\n\nt\u0159\u00edda FOO {\n  public $f;\n}\n\nt\u0159\u00edda 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>Pro nezasv\u011bcen\u00e9 - ano, v\u00fd\u0161e uveden\u00fd k\u00f3d zp\u016fsobuje chybu pam\u011bti. A je toho v\u00edc. Od idiotsk\u00e9ho pojmenov\u00e1n\u00ed metod a naprost\u00e9 absence logiky v po\u0159ad\u00ed jejich parametr\u016f (ano, v\u0161ichni milujeme <code>str_<\/code> a <code>array_<\/code>) na nejzn\u00e1m\u011bj\u0161\u00ed chybu PHP <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP je pln\u00fd podivnost\u00ed a nectnost\u00ed star\u00fdch verz\u00ed. To v\u0161ak neznamen\u00e1, \u017ee to, co jsme sly\u0161eli o <strong>PHP<\/strong> p\u0159ed n\u011bkolika lety, st\u00e1le plat\u00ed. Jazyk pro\u0161el obrovskou metamorf\u00f3zou a dnes se r\u00e1d pod\u00edv\u00e1m na sv\u00e9 definice objekt\u016f:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly t\u0159\u00edda 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>A co v\u00edc, <strong>Ekosyst\u00e9m PHP<\/strong> se velmi rozrostl a nyn\u00ed m\u00e1me neuv\u011b\u0159iteln\u00e9 mo\u017enosti vytv\u00e1\u0159et dobr\u00fd, vysoce typizovan\u00fd a dob\u0159e otestovan\u00fd k\u00f3d. M\u016f\u017eeme pou\u017e\u00edvat <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">k v\u00fdvoji aplikac\u00ed DDD<\/a> bez v\u011bt\u0161\u00edch probl\u00e9m\u016f a probl\u00e9m synchronizace PHP m\u016f\u017eeme obej\u00edt pomoc\u00ed sb\u011brnice Message Bus.<\/p>\n\n\n\n<p>A i kdy\u017e si s\u00e1m nemysl\u00edm. <strong>PHP<\/strong> je vhodn\u00fd pro vytv\u00e1\u0159en\u00ed dlouhotrvaj\u00edc\u00edch backendov\u00fdch proces\u016f a m\u00e1 velk\u00e9 probl\u00e9my s v\u00fdkonem, pokud jde o synchronizaci stavu.<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">vytvo\u0159il hru pro konzoli PHP<\/a> pomoc\u00ed Symfony + <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/docker-developer\/\">Docker<\/a> vlastn\u00edma rukama jako p\u0159\u00edklad toho, \u017ee PHP m\u016f\u017ee m\u00edt i netradi\u010dn\u00ed vyu\u017eit\u00ed.<\/p>\n\n\n\n<p>\u200b<br>Dal\u0161\u00ed <strong>v\u00fdhoda PHP<\/strong> je n\u00edzk\u00e1 vstupn\u00ed bari\u00e9ra pro nov\u00e9 v\u00fdvoj\u00e1\u0159e. Dokumentace dvou popul\u00e1rn\u00edch framework\u016f Symfony a<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> a <strong>PHP<\/strong> samotn\u00e1 dokumentace sta\u010d\u00ed k tomu, abyste s jejich pomoc\u00ed vstoupili do sv\u011bta backendu. Sv\u011bt, kter\u00fd nen\u00ed v PHP dokonal\u00fd, ale umo\u017e\u0148uje mnoh\u00e9. Pou\u017eit\u00ed dal\u0161\u00edch knihoven, jako nap\u0159. <a href=\"https:\/\/thecodest.co\/cs\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova jsme schopni vytvo\u0159it t\u00e9m\u011b\u0159 jakoukoli sou\u010d\u00e1st na\u0161eho syst\u00e9mu pomoc\u00ed pouh\u00fdch dvou p\u0159\u00edkaz\u016f.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Afterglow<\/h2>\n\n\n\n<p>\u200b<br>Je <strong>PHP<\/strong> um\u00edr\u00e1te?<\/p>\n\n\n\n<p>Ne, ale m\u00e1 probl\u00e9m s image a pot\u0159ebuje hodn\u011b pr\u00e1ce, aby se zlep\u0161ila. Tuto pr\u00e1ci mus\u00edme odv\u00e9st my, program\u00e1to\u0159i, t\u00edm, \u017ee budeme u\u010dit novou generaci a p\u0159ed\u00e1vat j\u00ed osv\u011bd\u010den\u00e9 postupy ve form\u011b \u010dl\u00e1nk\u016f, knihoven a tip\u016f.<\/p>\n\n\n\n<p>Jako jazyk, kter\u00fd byl na <a href=\"https:\/\/thecodest.co\/cs\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">trh<\/a> po dobu dvaceti let, kter\u00e1 ji\u017e p\u0159e\u017eila v\u00edce ne\u017e jeden <code>humbuk<\/code> (Pamatujete si na Objective-C?) Mysl\u00edm, \u017ee si porad\u00ed a najde si svou mezeru.<br>\u200b<br>A kdo v\u00ed, t\u0159eba se m\u00e9 p\u0159edpov\u011bdi uk\u00e1\u017e\u00ed jako spr\u00e1vn\u00e9 a PHP 10.x za dva roky op\u011bt za\u017eije boom?<\/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=\"banner spolupr\u00e1ce\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Jako v\u00fdvoj\u00e1\u0159 PHP si je\u0161t\u011b pamatuji \u010dasy PHP4, prvn\u00ed (volitelnou!) implementaci GC v PHP5 a pro\u017eil jsem _hype_ p\u0159\u00edchodu PHP7 a jeho d\u016fsledky.<\/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\/cs\/blog\/dva-duvody-proc-byste-nemeli-pouzivat-php\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\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\/cs\/blog\/dva-duvody-proc-byste-nemeli-pouzivat-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 minutes\" \/>\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\":\"cs-CZ\",\"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\":\"cs-CZ\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs-CZ\",\"@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\":\"cs-CZ\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs-CZ\",\"@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\":\"cs-CZ\",\"@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\\\/cs\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Dva d\u016fvody, pro\u010d byste nem\u011bli pou\u017e\u00edvat PHP - The Codest","description":"Jako v\u00fdvoj\u00e1\u0159 PHP si je\u0161t\u011b pamatuji \u010dasy PHP4, prvn\u00ed (volitelnou!) implementaci GC v PHP5 a pro\u017eil jsem _hype_ p\u0159\u00edchodu PHP7 a jeho d\u016fsledky.","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\/cs\/blog\/dva-duvody-proc-byste-nemeli-pouzivat-php\/","og_locale":"cs_CZ","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\/cs\/blog\/dva-duvody-proc-byste-nemeli-pouzivat-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 minutes"},"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":"cs-CZ","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":"Dva d\u016fvody, pro\u010d byste nem\u011bli pou\u017e\u00edvat 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":"Jako v\u00fdvoj\u00e1\u0159 PHP si je\u0161t\u011b pamatuji \u010dasy PHP4, prvn\u00ed (volitelnou!) implementaci GC v PHP5 a pro\u017eil jsem _hype_ p\u0159\u00edchodu PHP7 a jeho d\u016fsledky.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"cs-CZ","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"cs-CZ","@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":"cs-CZ"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"cs-CZ","@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":"cs-CZ","@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\/cs\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/cs\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}