{"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-grunner-til-at-du-ikke-bor-bruke-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/nb\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"To grunner til at du ikke b\u00f8r bruke PHP"},"content":{"rendered":"<p>I \u00e5renes l\u00f8p har mange spurt meg hvorfor jeg gidder \u00e5 <strong>programmering i <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>, og i mange \u00e5r har jeg som et mantra h\u00f8rt to tilbakevendende argumenter for hvorfor jeg burde slutte og begynne \u00e5 skrive kommersiell programvare i spr\u00e5k som <a href=\"https:\/\/thecodest.co\/nb\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> eller C#.<br>\u200b<br>I dag skal jeg sitere disse argumentene og pr\u00f8ve \u00e5 endre holdningen din til <strong>PHP<\/strong> i det minste litt. Ja, tittelen p\u00e5 denne artikkelen 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=\"bilde\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP er d\u00f8ende<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> d\u00f8r \u00e5r etter \u00e5r. Den en gang mest popul\u00e6re <a href=\"https:\/\/thecodest.co\/nb\/blog\/find-your-ideal-stack-for-web-development\/\">nett<\/a> spr\u00e5ket taper n\u00e5 popularitet m\u00e5ned for m\u00e5ned, mest til fordel for <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>N\u00e5r man ser gjennom tallene, er sannheten tankevekkende! I l\u00f8pet av det siste \u00e5ret <strong>PHP<\/strong> mistet svimlende 1,6% av sin andel som backend-spr\u00e5k p\u00e5 nettet.<\/p>\n\n\n\n<p>\u200b<br>Hvis <strong>PHP<\/strong> fortsetter denne nedadg\u00e5ende trenden, p\u00e5 18 \u00e5r <strong>PHP<\/strong> vil falle under 50% av 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 trender i statistikken over bruk av programmeringsspr\u00e5k p\u00e5 serversiden for nettsteder\"><\/p>\n\n\n\n<p>\u200b<br>Men ok, sp\u00f8k til side - selv om tallene er reelle <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">som rapportert av W3CTechs<\/a>.<\/p>\n\n\n\n<p>Den f\u00f8rste omtalen som <strong>PHP<\/strong> er d\u00f8ende har v\u00e6rt \u00e5 finne p\u00e5 nettet siden 2013. Den gang Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">publiserte en artikkel<\/a> (som jeg forresten anbefaler p\u00e5 det varmeste!) som sier at PHP vil d\u00f8 fordi den ikke st\u00f8tter langlivede prosesser og fordi den mangler asynkronitet.<\/p>\n\n\n\n<p>\u200b<br>Og det er et faktum, <strong>PHP<\/strong> var ikke skapt for 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 alt du har er en hammer, ser alt ut som en spiker<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Men tilbake til tallene - la oss ta en titt p\u00e5 fjor\u00e5rets <a href=\"https:\/\/thecodest.co\/nb\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">data<\/a> p\u00e5 <strong>PHP<\/strong> versjoner som brukes i Packagist-pakker. De nyeste dataene er tilgjengelige 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=\"Pakkeinstallasjoner av PHP mindre versjonsgraf\" title=\"Pakkeinstallasjoner av PHP mindre versjon\"\/><\/figure>\n\n\n\n<p>\u200b<br>Er dette adopsjonskurven for nye versjoner av et utd\u00f8ende programmeringsspr\u00e5k?<\/p>\n\n\n\n<p>\u200b<br>Hvis det ikke er nok, la oss sjekke \"PHP-d\u00f8dsraten\" v\u00e5r mot andre spr\u00e5k.<br>\u200b<\/p>\n\n\n\n<p>Datagrunnlaget for 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 antall <code>git push<\/code> per spr\u00e5k til Github siden 2012, i henhold til ordningen - \"Den prosentvise spr\u00e5kfordelingen i linjediagrammet viser de 10 st\u00f8rste (eller manuelt valgte) spr\u00e5kene 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=\"graf over prosentvis fordeling av programmeringsspr\u00e5k\" title=\"prosentvis fordeling av programmeringsspr\u00e5k \"\/><\/figure>\n\n\n\n<p>\u200b<br>Som du kan se <strong>PHP<\/strong> i tillegg til andre popul\u00e6re spr\u00e5k som <a href=\"https:\/\/thecodest.co\/nb\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/what-is-python-good-for\/\">Python<\/a> har opplevd et betydelig fall i popularitet p\u00e5 Github de siste \u00e5rene, men det er en oppadg\u00e5ende trend, og vi forventer at de vil komme tilbake til h\u00f8ye posisjoner etter en lengre periode med sidelengs utvikling. <em>(dette er ikke investeringsr\u00e5dgivning)<\/em><\/p>\n\n\n\n<p>\u200b<br>Den f\u00f8rste <code>hype<\/code> for Javascript-spr\u00e5ket kan sees i det samme diagrammet. Jeg vil allerede overlate konklusjonene og analysen til deg, kj\u00e6re leser.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"bilde\"><\/p>\n\n\n\n<p>\u200b<br>Men p\u00e5 den annen side - et utd\u00f8ende spr\u00e5k burde vel ikke ha en tendens til \u00e5 \u00f8ke antall jobbtilbud for programmerere?<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=\"bilde\"\/><\/figure>\n\n\n\n<p>\u200b<br>I skrivende stund kan jeg velge mellom 171 jobbtilbud p\u00e5 en av de ledende jobbportalene i <a href=\"https:\/\/thecodest.co\/nb\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polen<\/a>hvorav hele 50 er for juniorer. <strong>PHP<\/strong> er d\u00f8ende, ikke sant?<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 d\u00f8ende \" title=\"PHP er d\u00f8ende meme \"\/><\/figure>\n\n\n\n<p>Og apropos penger... visste du at <strong>PHP<\/strong> og dens kilde <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/what-is-code-refactoring\/\">kode<\/a> har blitt vedlikeholdt siden november 2021 av <em>uavhengig \u00e5pen kildekode<\/em> samfunnet<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">PHP-stiftelsen<\/a> som <strong>betaler mye penger<\/strong> til OpenSource-utviklere for bidrag til <code>php-src<\/code>?<\/p>\n\n\n\n<p>I motsetning til andre spr\u00e5k og rammeverk, som ofte eies av store selskaper, er kjernen i utviklingen <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/how-to-lead-software-development-team\/\">team<\/a> betales direkte fra stiftelsens konto, som drives av bidrag fra private selskaper som JetBrains og Symfony Corp, men ogs\u00e5 av<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">sm\u00e5 bidrag fra individuelle utviklere<\/a>.<\/p>\n\n\n\n<p>\u00c5pen kildekode i all sin prakt!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP er forferdelig<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Ja, dette argumentet kommer alltid fra utviklere som har blitt kjent med sterkt typede, sammenlignbare spr\u00e5k.<br>\u200b<br>N\u00e5r vi ser p\u00e5 grafen over data som ble samlet inn i l\u00f8pet av<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow-unders\u00f8kelse<\/a> av 2021, kan du se at s\u00e5 mange som 10 834 respondenter, som representerer nesten 60% av totalen, syntes at PHP var \"forferdelig\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"bilde\"><br>\u200b<br>Som en gammeldags <strong>PHP programmerer<\/strong>Jeg forst\u00e5r hvorfor det er slik. Jeg blir umiddelbart minnet 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\nclass FOO {\n  public $f;\n}\n\nclass 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 \"Minnebruk: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>For de uinnvidde - ja, koden ovenfor for\u00e5rsaker en minnefeil. Og det er mer. Fra den idiotiske navngivningen av metoder og den totale mangelen p\u00e5 logikk i rekkef\u00f8lgen av parametrene (ja, vi elsker alle <code>str_<\/code> og <code>array_<\/code>) til PHPs mest ber\u00f8mte feil <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP er full av s\u00e6regenheter og laster fra gamle versjoner. Dette betyr ikke at det vi h\u00f8rte om <strong>PHP<\/strong> for noen \u00e5r siden, gjelder fortsatt. Spr\u00e5ket har gjennomg\u00e5tt en enorm metamorfose, og i dag er jeg glad for \u00e5 kunne se p\u00e5 objektdefinisjonene mine:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly-klassen NotificationEvent\n{\n    offentlig funksjon __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>Dessuten er <strong>PHP \u00f8kosystem<\/strong> har vokst enormt, og vi har n\u00e5 utrolige muligheter til \u00e5 lage god, h\u00f8yt typet og godt testet kode. Vi kan bruke <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">for \u00e5 utvikle DDD-applikasjoner<\/a> uten store problemer, og vi kan omg\u00e5 problemet med PHPs synkronisering ved \u00e5 bruke Message Bus.<\/p>\n\n\n\n<p>Og selv om jeg selv ikke tror <strong>PHP<\/strong> er egnet for \u00e5 lage langlivede backend-prosesser og har store ytelsesproblemer n\u00e5r det gjelder tilstandssynkronisering, men jeg har ogs\u00e5<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">opprettet en PHP konsollspill<\/a> ved hjelp av Symfony + <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/docker-developer\/\">Docker<\/a> med mine egne hender som et eksempel p\u00e5 at PHP fortsatt kan ha utradisjonelle bruksomr\u00e5der.<\/p>\n\n\n\n<p>\u200b<br>En annen <strong>fordelen med PHP<\/strong> er den lave inngangsbarrieren for nye utviklere. Dokumentasjon av to popul\u00e6re rammeverk, Symfony og<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> og <strong>PHP<\/strong> dokumentasjon i seg selv er nok til \u00e5 komme inn i backend-verdenen med deres hjelp. En verden som ikke er perfekt i PHP, men som gir mulighet for mye. Ved \u00e5 bruke tilleggsbiblioteker som <a href=\"https:\/\/thecodest.co\/nb\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova kan vi opprette nesten alle komponenter i systemet v\u00e5rt med bare to kommandoer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ettergl\u00f8d<\/h2>\n\n\n\n<p>\u200b<br>Er <strong>PHP<\/strong> ...d\u00f8ende?<\/p>\n\n\n\n<p>Nei, men det har et imageproblem og trenger mye arbeid for \u00e5 forbedre det. Vi programmerere m\u00e5 gj\u00f8re dette arbeidet ved \u00e5 l\u00e6re opp den nye generasjonen og videreformidle beste praksis i form av artikler, biblioteker og tips.<\/p>\n\n\n\n<p>Som et spr\u00e5k som har v\u00e6rt p\u00e5 <a href=\"https:\/\/thecodest.co\/nb\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">marked<\/a> i tjue \u00e5r, og som allerede har overlevd mer enn \u00e9n <code>hype<\/code> (husker du Objective-C?) Jeg tror det vil klare seg og finne sin nisje.<br>\u200b<br>Og hvem vet, kanskje mine sp\u00e5dommer viser seg \u00e5 v\u00e6re riktige, og PHP 10.x vil blomstre igjen 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=\"samarbeidsbanner\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Som PHP-utvikler husker jeg fortsatt dagene med PHP4, den f\u00f8rste (valgfrie!) GC-implementeringen i PHP5, og jeg gjennomlevde _hype_ om 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\/nb\/blogg\/to-grunner-til-at-du-ikke-bor-bruke-php\/\" \/>\n<meta property=\"og:locale\" content=\"nb_NO\" \/>\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\/nb\/blogg\/to-grunner-til-at-du-ikke-bor-bruke-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\":\"nb-NO\",\"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\":\"nb-NO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"nb-NO\",\"@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\":\"nb-NO\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nb-NO\",\"@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\":\"nb-NO\",\"@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\\\/nb\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"To grunner til at du ikke b\u00f8r bruke PHP - The Codest","description":"Som PHP-utvikler husker jeg fortsatt dagene med PHP4, den f\u00f8rste (valgfrie!) GC-implementeringen i PHP5, og jeg gjennomlevde _hype_ om 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\/nb\/blogg\/to-grunner-til-at-du-ikke-bor-bruke-php\/","og_locale":"nb_NO","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\/nb\/blogg\/to-grunner-til-at-du-ikke-bor-bruke-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":"nb-NO","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 grunner til at du ikke b\u00f8r bruke 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-utvikler husker jeg fortsatt dagene med PHP4, den f\u00f8rste (valgfrie!) GC-implementeringen i PHP5, og jeg gjennomlevde _hype_ om PHP7 og dens forgreninger.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"nb-NO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"nb-NO","@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":"nb-NO"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"nb-NO","@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":"nb-NO","@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\/nb\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/nb\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}