{"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":"to-grunde-til-at-du-ikke-skal-bruge-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/da\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"To grunde til, at du ikke b\u00f8r bruge PHP"},"content":{"rendered":"<p>I \u00e5renes l\u00f8b har mange mennesker spurgt mig, hvorfor jeg gider. <strong>programmering i <a href=\"https:\/\/thecodest.co\/da\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>og i mange \u00e5r har jeg som et mantra h\u00f8rt to tilbagevendende argumenter for, hvorfor jeg skulle stoppe og begynde at skrive kommerciel software i sprog som <a href=\"https:\/\/thecodest.co\/da\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> eller C#.<br>\u200b<br>I dag vil jeg citere disse argumenter og fors\u00f8ge at \u00e6ndre din holdning til <strong>PHP<\/strong> I det mindste en lille smule. Ja, titlen p\u00e5 denne artikel er en absurd 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=\"billede\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP er ved at d\u00f8<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> d\u00f8r \u00e5r efter \u00e5r. Den engang mest popul\u00e6re <a href=\"https:\/\/thecodest.co\/da\/blog\/find-your-ideal-stack-for-web-development\/\">web<\/a> sprog mister nu popularitet m\u00e5ned for m\u00e5ned, mest til <a href=\"https:\/\/thecodest.co\/da\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>N\u00e5r man ser p\u00e5 tallene, er sandheden tankev\u00e6kkende! I l\u00f8bet af det sidste \u00e5r, <strong>PHP<\/strong> mistede svimlende 1,6% af sin andel som backend-sprog p\u00e5 nettet.<\/p>\n\n\n\n<p>\u200b<br>Hvis <strong>PHP<\/strong> forts\u00e6tter denne nedadg\u00e5ende tendens, i 18 \u00e5r <strong>PHP<\/strong> vil falde til under 50% af backend-webteknologien!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Historiske tendenser i statistikkerne over brugen af programmeringssprog p\u00e5 serversiden til hjemmesider\"><\/p>\n\n\n\n<p>\u200b<br>Men okay, sp\u00f8g til side - selvom tallene er reelle <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">som rapporteret af W3CTechs<\/a>.<\/p>\n\n\n\n<p>Den f\u00f8rste omtale, der <strong>PHP<\/strong> er ved at d\u00f8, har v\u00e6ret at finde p\u00e5 nettet siden 2013. Dengang var Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">udgav en artikel<\/a> (som jeg i \u00f8vrigt varmt kan anbefale!), der siger, at PHP vil d\u00f8, fordi den ikke underst\u00f8tter langlivede processer, og fordi den mangler asynkronitet.<\/p>\n\n\n\n<p>\u200b<br>Og det er et faktum, <strong>PHP<\/strong> var ikke skabt til det!<\/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>Hvis man kun har en hammer, ligner alt et s\u00f8m.<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Men tilbage til tallene - lad os tage et kig p\u00e5 sidste \u00e5rs <a href=\"https:\/\/thecodest.co\/da\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">data<\/a> p\u00e5 <strong>PHP<\/strong> versioner, der bruges i Packagist-pakker. De seneste data er tilg\u00e6ngelige p\u00e5 kildesiden <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=\"Pakkeinstallationer af PHP mindre versionsgraf\" title=\"Pakkeinstallationer af PHP mindre version\"\/><\/figure>\n\n\n\n<p>\u200b<br>Er dette adoptionskurven for nye versioner af et d\u00f8ende programmeringssprog?<\/p>\n\n\n\n<p>\u200b<br>Hvis det ikke er nok, s\u00e5 lad os tjekke vores \"PHP-d\u00f8dsrate\" i forhold til andre sprog.<br>\u200b<\/p>\n\n\n\n<p>Dataene til analysen er hentet fra<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>som genererer et diagram over antallet af <code>git push<\/code> per sprog til Github siden 2012, if\u00f8lge ordningen - \"Den procentvise sprogfordeling i linjediagrammet viser de 10 st\u00f8rste (eller manuelt valgte) sprog siden 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=\"programmeringssprogets procentvise fordelingsgraf\" title=\"Procentvis fordeling af programmeringssprog \"\/><\/figure>\n\n\n\n<p>\u200b<br>Som du kan se <strong>PHP<\/strong> samt andre popul\u00e6re sprog som f.eks. <a href=\"https:\/\/thecodest.co\/da\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>C\/C++, <a href=\"https:\/\/thecodest.co\/da\/dictionary\/what-is-python-good-for\/\">Python<\/a> har oplevet et betydeligt fald i popularitet p\u00e5 Github i de senere \u00e5r, men der er en opadg\u00e5ende tendens, og vi forventer, at de vender tilbage til h\u00f8je positioner efter en l\u00e6ngere sidel\u00e6ns periode. <em>(dette er ikke investeringsr\u00e5dgivning)<\/em><\/p>\n\n\n\n<p>\u200b<br>Den f\u00f8rste <code>Hype<\/code> for Javascript-sproget kan ses i samme diagram. Jeg vil allerede nu overlade konklusionerne og analysen til dig, k\u00e6re l\u00e6ser.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"billede\"><\/p>\n\n\n\n<p>\u200b<br>Men s\u00e5 igen - et d\u00f8ende sprog burde ikke have tendens til at \u00f8ge antallet af jobtilbud til programm\u00f8rer, vel?<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=\"billede\"\/><\/figure>\n\n\n\n<p>\u200b<br>I skrivende stund kan jeg v\u00e6lge mellem 171 jobtilbud p\u00e5 en af de f\u00f8rende jobportaler i Danmark. <a href=\"https:\/\/thecodest.co\/da\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polen<\/a>hvoraf hele 50 er for juniorer. <strong>PHP<\/strong> er ved at d\u00f8, ikke?<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 er ved at d\u00f8 \" title=\"PHP er et d\u00f8ende meme \"\/><\/figure>\n\n\n\n<p>Og apropos penge ... vidste du, at <strong>PHP<\/strong> og dens kilde <a href=\"https:\/\/thecodest.co\/da\/dictionary\/what-is-code-refactoring\/\">Kode<\/a> er blevet vedligeholdt siden november 2021 af <em>uafh\u00e6ngig Open Source<\/em> samfund<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">PHP-stiftelsen<\/a> som <strong>betaler mange penge<\/strong> til OpenSource-udviklere for bidrag til <code>php-src<\/code>?<\/p>\n\n\n\n<p>I mods\u00e6tning til andre sprog og frameworks, som ofte er ejet af store virksomheder, er kerneudviklingen <a href=\"https:\/\/thecodest.co\/da\/dictionary\/how-to-lead-software-development-team\/\">hold<\/a> betales direkte fra fondens konto, som drives af bidrag fra private virksomheder som JetBrains og Symfony Corp, men ogs\u00e5 af<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">sm\u00e5 bidrag fra individuelle udviklere<\/a>.<\/p>\n\n\n\n<p>Open Source i al sin pragt!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP er forf\u00e6rdelig<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Ja, dette argument kommer altid fra udviklere, der er blevet fortrolige med st\u00e6rkt typede, sammenlignelige sprog.<br>\u200b<br>N\u00e5r man ser p\u00e5 grafen over data indsamlet i l\u00f8bet af<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow-unders\u00f8gelse<\/a> af 2021, kan du se, at hele 10.834 respondenter, der repr\u00e6senterer n\u00e6sten 60% af det samlede antal, syntes, at PHP var \"forf\u00e6rdelig\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"billede\"><br>\u200b<br>Som en old-school <strong>PHP programm\u00f8r<\/strong>Jeg forst\u00e5r godt, hvorfor det er s\u00e5dan. Jeg bliver straks mindet om et klassisk eksempel p\u00e5 hukommelsesproblemer i <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>&lt;?php<\/strong>\n\nklasse FOO {\n  public $f;\n}\n\nklasse BAR {\n  public $f;\n}\n\nwhile(1) {\n  $a = ny FOO();\n  $b = ny BAR();\n  $a-&gt;f = $b;\n  $b-&gt;f = $a;\n  print \"Hukommelsesforbrug: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>For de uindviede - ja, ovenst\u00e5ende kode for\u00e5rsager en hukommelsesfejl. Og der er mere. Fra den idiotiske navngivning af metoder og den fuldst\u00e6ndige mangel p\u00e5 logik i r\u00e6kkef\u00f8lgen af deres parametre (ja, vi elsker alle <code>str_<\/code> og <code>Array_.<\/code>) til PHP's mest ber\u00f8mte fejl <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP er fuld af s\u00e6rheder og laster fra gamle versioner. Det betyder ikke, at det, vi har h\u00f8rt om <strong>PHP<\/strong> for et par \u00e5r siden, g\u00e6lder stadig. Sproget har gennemg\u00e5et en enorm metamorfose, og i dag er jeg glad for at se p\u00e5 mine objektdefinitioner:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly klasse NotificationEvent\n{\n    offentlig funktion __construct(\n        offentlig streng $context,\n        offentlig bruger $user,\n        public string $body,\n        public DateTime $issuedAt,\n    ) {}\n}<\/code><\/pre>\n\n\n\n<p>Hvad mere er, s\u00e5 <strong>PHP-\u00f8kosystem<\/strong> er vokset enormt, og vi har nu utrolige muligheder for at skabe god, h\u00f8jt typet og velafpr\u00f8vet kode. Vi kan bruge <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">til at udvikle DDD-applikationer<\/a> uden st\u00f8rre problemer, og vi kan omg\u00e5 problemet med PHP's synkronisering ved at bruge Message Bus.<\/p>\n\n\n\n<p>Og selvom jeg ikke selv synes <strong>PHP<\/strong> er velegnet til at skabe langlivede backend-processer og har store problemer med ydeevnen, n\u00e5r det kommer til tilstandssynkronisering, jeg har ogs\u00e5<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">skabte et PHP-konsolspil<\/a> ved hj\u00e6lp af Symfony +. <a href=\"https:\/\/thecodest.co\/da\/dictionary\/docker-developer\/\">Docker<\/a> med mine egne h\u00e6nder som et eksempel p\u00e5, at PHP stadig kan have utraditionelle anvendelser.<\/p>\n\n\n\n<p>\u200b<br>En anden <strong>fordel ved PHP<\/strong> er den lave adgangsbarriere for nye udviklere. Dokumentationer af to popul\u00e6re frameworks Symfony og<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> og <strong>PHP<\/strong> Dokumentation i sig selv er nok til at komme ind i backend-verdenen med deres hj\u00e6lp. En verden, der ikke er perfekt i PHP, men som giver mulighed for meget. Brug af ekstra biblioteker som f.eks. <a href=\"https:\/\/thecodest.co\/da\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova er vi i stand til at skabe n\u00e6sten enhver komponent i vores system med bare to kommandoer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Eftergl\u00f8d<\/h2>\n\n\n\n<p>\u200b<br>Er <strong>PHP<\/strong> D\u00f8ende?<\/p>\n\n\n\n<p>Nej, men det har et imageproblem og har brug for en masse arbejde for at forbedre det. Vi, programm\u00f8rerne, skal g\u00f8re dette arbejde ved at undervise den nye generation og videregive bedste praksis i form af artikler, biblioteker og tips.<\/p>\n\n\n\n<p>Som et sprog, der har v\u00e6ret p\u00e5 <a href=\"https:\/\/thecodest.co\/da\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">marked<\/a> i tyve \u00e5r, som allerede har overlevet mere end \u00e9n <code>Hype<\/code> (husker du Objective-C?) Jeg tror, det vil klare sig og finde sin niche.<br>\u200b<br>Og hvem ved, m\u00e5ske viser mine forudsigelser sig at v\u00e6re korrekte, og PHP 10.x vil boome igen om to \u00e5r?<\/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=\"Samarbejdsbanner\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Som PHP-udvikler husker jeg stadig dagene med PHP4, den f\u00f8rste (valgfri!) GC-implementering i PHP5, og jeg oplevede _hypet_ om fremkomsten af PHP7 og dens forgreninger.<\/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\/da\/blog\/to-grunde-til-at-du-ikke-skal-bruge-php\/\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\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\/da\/blog\/to-grunde-til-at-du-ikke-skal-bruge-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 minutter\" \/>\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\":\"da-DK\",\"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\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@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\":\"da-DK\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@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\":\"da-DK\",\"@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\\\/da\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"To grunde til, at du ikke b\u00f8r bruge PHP - The Codest","description":"Som PHP-udvikler husker jeg stadig dagene med PHP4, den f\u00f8rste (valgfri!) GC-implementering i PHP5, og jeg oplevede _hypet_ om fremkomsten af PHP7 og dens forgreninger.","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\/da\/blog\/to-grunde-til-at-du-ikke-skal-bruge-php\/","og_locale":"da_DK","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\/da\/blog\/to-grunde-til-at-du-ikke-skal-bruge-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 minutter"},"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":"da-DK","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":"To grunde til, at du ikke b\u00f8r bruge 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":"Som PHP-udvikler husker jeg stadig dagene med PHP4, den f\u00f8rste (valgfri!) GC-implementering i PHP5, og jeg oplevede _hypet_ om fremkomsten af PHP7 og dens forgreninger.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"da-DK","@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":"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":"da-DK"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"da-DK","@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":"da-DK","@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\/da\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/da\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}