{"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":"dwa-powody-dla-ktorych-nie-powinienes-uzywac-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/pl\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Dwa powody, dla kt\u00f3rych nie powiniene\u015b u\u017cywa\u0107 PHP"},"content":{"rendered":"<p>Przez lata wiele os\u00f3b pyta\u0142o mnie, dlaczego zawracam sobie tym g\u0142ow\u0119 <strong>programowanie w <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>i przez wiele lat s\u0142ysza\u0142em jak mantr\u0119 dwa powtarzaj\u0105ce si\u0119 argumenty, dlaczego powinienem przesta\u0107 i zacz\u0105\u0107 pisa\u0107 komercyjne oprogramowanie w j\u0119zykach takich jak <a href=\"https:\/\/thecodest.co\/pl\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> lub C#.<br>\u200b<br>Dzisiaj przytocz\u0119 te argumenty i spr\u00f3buj\u0119 zmieni\u0107 twoje nastawienie do <strong>PHP<\/strong> przynajmniej troch\u0119. Tak, tytu\u0142 tego artyku\u0142u to absurdalny 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=\"obraz\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP umiera<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> umiera z roku na rok. Niegdy\u015b najpopularniejszy <a href=\"https:\/\/thecodest.co\/pl\/blog\/find-your-ideal-stack-for-web-development\/\">sie\u0107<\/a> J\u0119zyk ten z miesi\u0105ca na miesi\u0105c traci na popularno\u015bci, g\u0142\u00f3wnie na rzecz <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>Gdy spojrzy si\u0119 na liczby, prawda jest otrze\u017awiaj\u0105ca! W ci\u0105gu ostatniego roku, <strong>PHP<\/strong> straci\u0142 osza\u0142amiaj\u0105ce 1,6% swojego udzia\u0142u jako j\u0119zyk zaplecza sieci.<\/p>\n\n\n\n<p>\u200b<br>Je\u015bli <strong>PHP<\/strong> kontynuuje ten trend spadkowy, w ci\u0105gu 18 lat <strong>PHP<\/strong> spadnie poni\u017cej 50% backendowej technologii webowej!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Historyczne trendy w statystykach u\u017cytkowania j\u0119zyk\u00f3w programowania po stronie serwera dla stron internetowych\"><\/p>\n\n\n\n<p>\u200b<br>Ale dobra, \u017carty na bok - chocia\u017c liczby s\u0105 prawdziwe <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">jak donosi W3CTechs<\/a>.<\/p>\n\n\n\n<p>Pierwsza wzmianka, \u017ce <strong>PHP<\/strong> umiera mo\u017cna znale\u017a\u0107 w sieci od 2013 roku. Wtedy Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">opublikowa\u0142 artyku\u0142<\/a> (kt\u00f3r\u0105 przy okazji gor\u0105co polecam!), m\u00f3wi\u0105c, \u017ce PHP umrze, poniewa\u017c nie obs\u0142uguje d\u0142ugotrwa\u0142ych proces\u00f3w i poniewa\u017c brakuje mu asynchroniczno\u015bci.<\/p>\n\n\n\n<p>\u200b<br>I to jest fakt, <strong>PHP<\/strong> nie zosta\u0142 do tego stworzony!<\/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>je\u015bli masz tylko m\u0142otek, wszystko wygl\u0105da jak gw\u00f3\u017ad\u017a<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Wracaj\u0105c jednak do liczb - przyjrzyjmy si\u0119 tym z zesz\u0142ego roku <a href=\"https:\/\/thecodest.co\/pl\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">dane<\/a> na <strong>PHP<\/strong> wersje u\u017cywane w pakietach Packagist. Najnowsze dane s\u0105 dost\u0119pne na stronie \u017ar\u00f3d\u0142owej <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=\"Instalacje pakiet\u00f3w wed\u0142ug wykresu wersji podrz\u0119dnej PHP\" title=\"Instalacje pakiet\u00f3w wed\u0142ug wersji podrz\u0119dnej PHP\"\/><\/figure>\n\n\n\n<p>\u200b<br>Czy jest to krzywa adopcji nowych wersji umieraj\u0105cego j\u0119zyka programowania?<\/p>\n\n\n\n<p>\u200b<br>Je\u015bli to nie wystarczy, sprawd\u017amy nasz \"wsp\u00f3\u0142czynnik zgon\u00f3w PHP\" w por\u00f3wnaniu z innymi j\u0119zykami.<br>\u200b<\/p>\n\n\n\n<p>Dane do analizy pochodz\u0105 z<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, kt\u00f3ry generuje wykres liczby <code>git push<\/code> na j\u0119zyk na Githubie od 2012 roku, zgodnie ze schematem - \"Procentowy rozk\u0142ad j\u0119zyk\u00f3w na wykresie liniowym pokazuje 10 najlepszych (lub r\u0119cznie wybranych) j\u0119zyk\u00f3w od 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=\"wykres procentowego rozk\u0142adu j\u0119zyka programowania\" title=\"Rozk\u0142ad procentowy j\u0119zyk\u00f3w programowania \"\/><\/figure>\n\n\n\n<p>\u200b<br>Jak wida\u0107 <strong>PHP<\/strong> a tak\u017ce inne popularne j\u0119zyki, takie jak <a href=\"https:\/\/thecodest.co\/pl\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/what-is-python-good-for\/\">Python<\/a> do\u015bwiadczy\u0142y znacznego spadku popularno\u015bci na Githubie w ostatnich latach, jednak istnieje tendencja wzrostowa i spodziewamy si\u0119, \u017ce po d\u0142u\u017cszym okresie bocznym powr\u00f3c\u0105 na wysokie pozycje. <em>(nie jest to porada inwestycyjna)<\/em><\/p>\n\n\n\n<p>\u200b<br>Pocz\u0105tkowy <code>szum<\/code> dla j\u0119zyka Javascript mo\u017cna zobaczy\u0107 na tym samym wykresie. Wnioski i jego analiz\u0119 pozostawiam ju\u017c Tobie, drogi czytelniku.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"obraz\"><\/p>\n\n\n\n<p>\u200b<br>Ale z drugiej strony - umieraj\u0105cy j\u0119zyk nie powinien zwi\u0119ksza\u0107 liczby ofert pracy dla programist\u00f3w, prawda?<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=\"obraz\"\/><\/figure>\n\n\n\n<p>\u200b<br>W chwili pisania tego artyku\u0142u mog\u0119 wybiera\u0107 spo\u015br\u00f3d 171 ofert pracy na jednym z wiod\u0105cych portali pracy w Polsce. <a href=\"https:\/\/thecodest.co\/pl\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polska<\/a>w tym a\u017c 50 dla junior\u00f3w. <strong>PHP<\/strong> umiera, prawda?<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 umiera \" title=\"PHP to umieraj\u0105cy mem \"\/><\/figure>\n\n\n\n<p>A skoro mowa o pieni\u0105dzach... czy wiesz, \u017ce <strong>PHP<\/strong> i jego \u017ar\u00f3d\u0142o <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/what-is-code-refactoring\/\">kod<\/a> jest utrzymywana od listopada 2021 r. przez <em>niezale\u017cny Open Source<\/em> spo\u0142eczno\u015b\u0107<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">Fundacja PHP<\/a> kt\u00f3ry <strong>p\u0142aci znaczne pieni\u0105dze<\/strong> deweloperom OpenSource za wk\u0142ad w <code>php-src<\/code>?<\/p>\n\n\n\n<p>W przeciwie\u0144stwie do innych j\u0119zyk\u00f3w i framework\u00f3w, kt\u00f3re cz\u0119sto s\u0105 w\u0142asno\u015bci\u0105 du\u017cych firm, rdze\u0144 rozwoju <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/how-to-lead-software-development-team\/\">zesp\u00f3\u0142<\/a> jest wyp\u0142acana bezpo\u015brednio z konta fundacji, kt\u00f3re jest prowadzone przez wp\u0142aty od prywatnych firm, takich jak JetBrains i Symfony Corp, ale tak\u017ce przez<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">niewielki wk\u0142ad poszczeg\u00f3lnych deweloper\u00f3w<\/a>.<\/p>\n\n\n\n<p>Open Source w ca\u0142ej okaza\u0142o\u015bci!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP jest straszny<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Tak, ten argument zawsze pada z ust programist\u00f3w, kt\u00f3rzy zapoznali si\u0119 z silnie typowanymi, por\u00f3wnywalnymi j\u0119zykami.<br>\u200b<br>Patrz\u0105c na wykres danych zebranych podczas<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">Ankieta StackOverflow<\/a> z 2021 r. wida\u0107, \u017ce a\u017c 10 834 respondent\u00f3w, co stanowi prawie 60% og\u00f3\u0142u, uzna\u0142o PHP za \"straszny\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"obraz\"><br>\u200b<br>Jako stara szko\u0142a <strong>Programator PHP<\/strong>Rozumiem, dlaczego tak jest. Od razu przypomina mi si\u0119 klasyczny przyk\u0142ad problem\u00f3w z pami\u0119ci\u0105 w <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>&lt;?php<\/strong>\n\nclass 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 \"Wykorzystanie pami\u0119ci: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>Dla niewtajemniczonych - tak, powy\u017cszy kod powoduje b\u0142\u0105d pami\u0119ci. A to nie wszystko. Od idiotycznego nazewnictwa metod i kompletnego braku logiki w kolejno\u015bci ich parametr\u00f3w (tak, wszyscy kochamy <code>str_<\/code> i <code>array_<\/code>) do najs\u0142ynniejszego b\u0142\u0119du PHP <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP jest pe\u0142en dziwactw i wad starych wersji. Nie oznacza to jednak, \u017ce to, o czym s\u0142yszeli\u015bmy <strong>PHP<\/strong> sprzed kilku lat jest nadal aktualna. J\u0119zyk przeszed\u0142 ogromn\u0105 metamorfoz\u0119 i dzi\u015b z przyjemno\u015bci\u0105 przygl\u0105dam si\u0119 moim definicjom obiekt\u00f3w:<\/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>Co wi\u0119cej <strong>Ekosystem PHP<\/strong> ogromnie si\u0119 rozwin\u0119\u0142a i mamy teraz niesamowite mo\u017cliwo\u015bci tworzenia dobrego, wysoce typowego i dobrze przetestowanego kodu. Mo\u017cemy u\u017cywa\u0107 <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">do tworzenia aplikacji DDD<\/a> bez wi\u0119kszych problem\u00f3w, a problem synchronizacji PHP mo\u017cemy obej\u015b\u0107 u\u017cywaj\u0105c Message Bus.<\/p>\n\n\n\n<p>I cho\u0107 sam nie uwa\u017cam <strong>PHP<\/strong> nadaje si\u0119 do tworzenia d\u0142ugotrwa\u0142ych proces\u00f3w backendowych i ma ogromne problemy z wydajno\u015bci\u0105, je\u015bli chodzi o synchronizacj\u0119 stan\u00f3w, mam r\u00f3wnie\u017c<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">stworzy\u0142 gr\u0119 konsolow\u0105 PHP<\/a> przy u\u017cyciu Symfony + <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/docker-developer\/\">Docker<\/a> w\u0142asnor\u0119cznie jako przyk\u0142ad, \u017ce PHP mo\u017ce mie\u0107 niekonwencjonalne zastosowania.<\/p>\n\n\n\n<p>\u200b<br>Inny <strong>Zalety PHP<\/strong> jest niska bariera wej\u015bcia dla nowych deweloper\u00f3w. Dokumentacje dw\u00f3ch popularnych framework\u00f3w Symfony i<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> i <strong>PHP<\/strong> Sama dokumentacja wystarczy, by z ich pomoc\u0105 wej\u015b\u0107 w backendowy \u015bwiat. \u015awiat, kt\u00f3ry w PHP nie jest idealny, ale pozwala na wiele. Korzystanie z dodatkowych bibliotek takich jak <a href=\"https:\/\/thecodest.co\/pl\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova jest w stanie stworzy\u0107 prawie ka\u017cdy komponent naszego systemu za pomoc\u0105 zaledwie dw\u00f3ch polece\u0144.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Afterglow<\/h2>\n\n\n\n<p>\u200b<br>Czy <strong>PHP<\/strong> umieraj\u0105cy?<\/p>\n\n\n\n<p>Nie, ale ma problem z wizerunkiem i wymaga wiele pracy, aby go poprawi\u0107. My, programi\u015bci, musimy wykona\u0107 t\u0119 prac\u0119, ucz\u0105c nowe pokolenie i przekazuj\u0105c najlepsze praktyki w formie artyku\u0142\u00f3w, bibliotek i wskaz\u00f3wek.<\/p>\n\n\n\n<p>Jako j\u0119zyk, kt\u00f3ry by\u0142 na <a href=\"https:\/\/thecodest.co\/pl\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">rynek<\/a> przez dwadzie\u015bcia lat, kt\u00f3ry przetrwa\u0142 ju\u017c wi\u0119cej ni\u017c jeden <code>szum<\/code> (pami\u0119tacie Objective-C?) My\u015bl\u0119, \u017ce sobie poradzi i znajdzie swoj\u0105 nisz\u0119.<br>\u200b<br>A kto wie, mo\u017ce moje przewidywania oka\u017c\u0105 si\u0119 s\u0142uszne i PHP 10.x zn\u00f3w prze\u017cyje boom za dwa lata?<\/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=\"baner wsp\u00f3\u0142pracy\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Jako programista PHP wci\u0105\u017c pami\u0119tam czasy PHP4, pierwsz\u0105 (opcjonaln\u0105!) implementacj\u0119 GC w PHP5 i prze\u017cy\u0142em _hype_ zwi\u0105zany z pojawieniem si\u0119 PHP7 i jego konsekwencjami.<\/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\/pl\/blog\/dwa-powody-dla-ktorych-nie-powinienes-uzywac-php\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\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\/pl\/blog\/dwa-powody-dla-ktorych-nie-powinienes-uzywac-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 minut\" \/>\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\":\"pl-PL\",\"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\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@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\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@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\":\"pl-PL\",\"@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\\\/pl\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Dwa powody, dla kt\u00f3rych nie powiniene\u015b u\u017cywa\u0107 PHP - The Codest","description":"Jako programista PHP wci\u0105\u017c pami\u0119tam czasy PHP4, pierwsz\u0105 (opcjonaln\u0105!) implementacj\u0119 GC w PHP5 i prze\u017cy\u0142em _hype_ zwi\u0105zany z pojawieniem si\u0119 PHP7 i jego konsekwencjami.","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\/pl\/blog\/dwa-powody-dla-ktorych-nie-powinienes-uzywac-php\/","og_locale":"pl_PL","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\/pl\/blog\/dwa-powody-dla-ktorych-nie-powinienes-uzywac-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 minut"},"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":"pl-PL","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":"Dwa powody, dla kt\u00f3rych nie powiniene\u015b u\u017cywa\u0107 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 programista PHP wci\u0105\u017c pami\u0119tam czasy PHP4, pierwsz\u0105 (opcjonaln\u0105!) implementacj\u0119 GC w PHP5 i prze\u017cy\u0142em _hype_ zwi\u0105zany z pojawieniem si\u0119 PHP7 i jego konsekwencjami.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@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":"pl-PL"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@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":"pl-PL","@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\/pl\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/pl\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}