{"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":"tva-skal-till-att-inte-anvanda-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/sv\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Tv\u00e5 sk\u00e4l till att du inte b\u00f6r anv\u00e4nda PHP"},"content":{"rendered":"<p>Under \u00e5rens lopp har m\u00e5nga fr\u00e5gat mig varf\u00f6r jag bryr mig <strong>programmering i <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>och i m\u00e5nga \u00e5r har jag som ett mantra h\u00f6rt tv\u00e5 \u00e5terkommande argument f\u00f6r varf\u00f6r jag borde sluta och b\u00f6rja skriva kommersiell programvara i spr\u00e5k som <a href=\"https:\/\/thecodest.co\/sv\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> eller C#.<br>\u200b<br>Idag ska jag citera dessa argument och f\u00f6rs\u00f6ka \u00e4ndra din inst\u00e4llning till <strong>PHP<\/strong> \u00e5tminstone lite grann. Ja, titeln p\u00e5 den h\u00e4r artikeln \u00e4r ett absurt klickbete.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176123016-0c45e1e9-5c0a-48f2-ae4a-54d8960003a1.png\" alt=\"bild\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP \u00e4r d\u00f6ende<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> d\u00f6r \u00e5r efter \u00e5r. Den en g\u00e5ng mest popul\u00e4ra <a href=\"https:\/\/thecodest.co\/sv\/blog\/find-your-ideal-stack-for-web-development\/\">webb<\/a> spr\u00e5ket f\u00f6rlorar nu popularitet m\u00e5nad f\u00f6r m\u00e5nad, mestadels till <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>N\u00e4r man tittar p\u00e5 siffrorna \u00e4r sanningen tillnyktrande! Under det senaste \u00e5ret, <strong>PHP<\/strong> f\u00f6rlorade hisnande 1,6% av sin andel som webbens backendspr\u00e5k.<\/p>\n\n\n\n<p>\u200b<br>Om <strong>PHP<\/strong> forts\u00e4tter denna ned\u00e5tg\u00e5ende trend, p\u00e5 18 \u00e5r <strong>PHP<\/strong> kommer att sjunka under 50% av backend-webbtekniken!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Historiska trender i anv\u00e4ndningsstatistiken f\u00f6r programmeringsspr\u00e5k p\u00e5 serversidan f\u00f6r webbplatser\"><\/p>\n\n\n\n<p>\u200b<br>Men okej, sk\u00e4mt \u00e5sido - \u00e4ven om siffrorna \u00e4r verkliga <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">som rapporterats av W3CTechs<\/a>.<\/p>\n\n\n\n<p>Det f\u00f6rsta omn\u00e4mnandet att <strong>PHP<\/strong> \u00e4r d\u00f6ende har funnits p\u00e5 webben sedan 2013. P\u00e5 den tiden Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">publicerade en artikel<\/a> (som jag f\u00f6r \u00f6vrigt varmt rekommenderar!) som s\u00e4ger att PHP kommer att d\u00f6 eftersom det inte st\u00f6der l\u00e5nglivade processer och eftersom det saknar asynkronitet.<\/p>\n\n\n\n<p>\u200b<br>Och det \u00e4r ett faktum, <strong>PHP<\/strong> var inte gjord f\u00f6r 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>om allt du har \u00e4r en hammare, ser allt ut som en spik<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Men tillbaka till siffrorna - l\u00e5t oss ta en titt p\u00e5 f\u00f6rra \u00e5rets <a href=\"https:\/\/thecodest.co\/sv\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">data<\/a> p\u00e5 <strong>PHP<\/strong> versioner som anv\u00e4nds i Packagist-paketen. De senaste uppgifterna finns tillg\u00e4ngliga p\u00e5 k\u00e4llsidan <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=\"Paketinstallationer av PHP mindre version graf\" title=\"Paketinstallationer av PHP mindre version\"\/><\/figure>\n\n\n\n<p>\u200b<br>\u00c4r detta adoptionskurvan f\u00f6r nya versioner av ett utd\u00f6ende programmeringsspr\u00e5k?<\/p>\n\n\n\n<p>\u200b<br>Om inte det r\u00e4cker kan vi j\u00e4mf\u00f6ra v\u00e5r \"PHP-d\u00f6dsfrekvens\" med andra spr\u00e5k.<br>\u200b<\/p>\n\n\n\n<p>Uppgifterna f\u00f6r analysen \u00e4r h\u00e4mtade fr\u00e5n<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>som genererar ett diagram \u00f6ver antalet <code>git push<\/code> per spr\u00e5k till Github sedan 2012, enligt schemat - \"Den procentuella f\u00f6rdelningen av spr\u00e5k i linjediagrammet visar de 10 st\u00f6rsta (eller manuellt valda) spr\u00e5ken sedan 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=\"programmeringsspr\u00e5k procentuell f\u00f6rdelning graf\" title=\"programmeringsspr\u00e5k procentuell f\u00f6rdelning \"\/><\/figure>\n\n\n\n<p>\u200b<br>Som du kan se <strong>PHP<\/strong> samt andra popul\u00e4ra spr\u00e5k som t.ex. <a href=\"https:\/\/thecodest.co\/sv\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Ruby<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/what-is-python-good-for\/\">Python<\/a> har upplevt en betydande nedg\u00e5ng i popularitet p\u00e5 Github under de senaste \u00e5ren, men det finns en upp\u00e5tg\u00e5ende trend och vi f\u00f6rv\u00e4ntar oss att de \u00e5terv\u00e4nder till h\u00f6ga positioner efter en l\u00e4ngre sidledes period. <em>(detta \u00e4r inte investeringsr\u00e5dgivning)<\/em><\/p>\n\n\n\n<p>\u200b<br>Den f\u00f6rsta <code>hype<\/code> f\u00f6r Javascript-spr\u00e5ket kan ses i samma diagram. Jag kommer redan att l\u00e4mna slutsatserna och dess analys till dig, k\u00e4ra l\u00e4sare.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"bild\"><\/p>\n\n\n\n<p>\u200b<br>Men \u00e5 andra sidan - ett utd\u00f6ende spr\u00e5k borde v\u00e4l inte \u00f6ka antalet jobberbjudanden f\u00f6r programmerare, eller hur?<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=\"bild\"\/><\/figure>\n\n\n\n<p>\u200b<br>N\u00e4r jag skriver den h\u00e4r artikeln kan jag v\u00e4lja mellan 171 jobberbjudanden p\u00e5 en av de ledande jobbportalerna i <a href=\"https:\/\/thecodest.co\/sv\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polen<\/a>varav s\u00e5 m\u00e5nga som 50 \u00e4r f\u00f6r juniorer. <strong>PHP<\/strong> \u00e4r d\u00f6ende, eller hur?<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 \u00e4r d\u00f6ende \" title=\"PHP \u00e4r ett d\u00f6ende meme \"\/><\/figure>\n\n\n\n<p>Och p\u00e5 tal om pengar... visste du att <strong>PHP<\/strong> och dess k\u00e4lla <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/what-is-code-refactoring\/\">kod<\/a> har underh\u00e5llits sedan november 2021 av <em>oberoende Open Source<\/em> samh\u00e4lle<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">Stiftelsen PHP<\/a> som <strong>betalar stora pengar<\/strong> till OpenSource-utvecklare f\u00f6r bidrag till <code>php-source<\/code>?<\/p>\n\n\n\n<p>Till skillnad fr\u00e5n andra spr\u00e5k och ramverk, som ofta \u00e4gs av stora f\u00f6retag, \u00e4r k\u00e4rnan i utvecklingen <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/how-to-lead-software-development-team\/\">Team<\/a> betalas direkt fr\u00e5n stiftelsens konto som drivs av bidrag fr\u00e5n privata f\u00f6retag som JetBrains och Symfony Corp men ocks\u00e5 av<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">sm\u00e5 bidrag fr\u00e5n enskilda utvecklare<\/a>.<\/p>\n\n\n\n<p>Open Source i all sin prakt!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP \u00e4r fruktansv\u00e4rt<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>Ja, det h\u00e4r argumentet kommer alltid fr\u00e5n utvecklare som har blivit bekanta med starkt typade, j\u00e4mf\u00f6rbara spr\u00e5k.<br>\u200b<br>Om man tittar p\u00e5 diagrammet \u00f6ver data som samlats in under<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow-unders\u00f6kning<\/a> av 2021 kan du se att s\u00e5 m\u00e5nga som 10 834 respondenter som representerar n\u00e4stan 60% av det totala antalet tyckte att PHP var \"fruktansv\u00e4rt\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"bild\"><br>\u200b<br>Som en gammaldags <strong>PHP programmerare<\/strong>f\u00f6rst\u00e5r jag varf\u00f6r det \u00e4r s\u00e5. Jag kommer genast att t\u00e4nka p\u00e5 ett klassiskt exempel p\u00e5 minnesproblem 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\nklass FOO {\n  public $f;\n}\n\nklass 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 \"Minnesanv\u00e4ndning: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>F\u00f6r den oinvigde - ja, ovanst\u00e5ende kod orsakar ett minnesfel. Och det finns mer. Fr\u00e5n den idiotiska namngivningen av metoder och den fullst\u00e4ndiga bristen p\u00e5 logik i ordningen p\u00e5 deras parametrar (ja, vi \u00e4lskar alla <code>str_<\/code> och <code>matris_<\/code>) till PHP:s mest k\u00e4nda fel <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - PHP \u00e4r full av egendomar och laster fr\u00e5n gamla versioner. Detta betyder inte att det vi h\u00f6rde om <strong>PHP<\/strong> f\u00f6r n\u00e5gra \u00e5r sedan \u00e4r fortfarande sant. Spr\u00e5ket har genomg\u00e5tt en enorm metamorfos och idag tittar jag g\u00e4rna p\u00e5 mina objektdefinitioner:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly klass NotificationEvent\n{\n    offentlig funktion __construct(\n        publik str\u00e4ng $context,\n        publik anv\u00e4ndare $user,\n        publik str\u00e4ng $body,\n        public DateTime $issuedAt,\n    ) {}\n}<\/code><\/pre>\n\n\n\n<p>Dessutom \u00e4r <strong>PHP ekosystem<\/strong> har vuxit enormt, och vi har nu otroliga m\u00f6jligheter att skapa bra, h\u00f6gt typad och v\u00e4l testad kod. Vi kan anv\u00e4nda <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">f\u00f6r att utveckla DDD-applikationer<\/a> utan n\u00e5gra st\u00f6rre problem, och vi kan komma runt problemet med PHP:s synkronicitet genom att anv\u00e4nda Message Bus.<\/p>\n\n\n\n<p>Och \u00e4ven om jag sj\u00e4lv inte tycker att <strong>PHP<\/strong> \u00e4r l\u00e4mplig f\u00f6r att skapa l\u00e5nglivade backend-processer och har enorma prestandaproblem n\u00e4r det g\u00e4ller statussynkronisering, men jag har ocks\u00e5<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">skapade ett PHP konsolspel<\/a> anv\u00e4nder Symfony + <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/docker-developer\/\">Docka<\/a> med mina egna h\u00e4nder som ett exempel p\u00e5 att PHP fortfarande kan ha okonventionella anv\u00e4ndningsomr\u00e5den.<\/p>\n\n\n\n<p>\u200b<br>En annan <strong>f\u00f6rdel av PHP<\/strong> \u00e4r dess l\u00e5ga intr\u00e4desbarri\u00e4r f\u00f6r nya utvecklare. Dokumentationer av tv\u00e5 popul\u00e4ra ramverk Symfony och<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> och <strong>PHP<\/strong> dokumentation i sig \u00e4r tillr\u00e4ckligt f\u00f6r att komma in i backend-v\u00e4rlden med deras hj\u00e4lp. En v\u00e4rld som inte \u00e4r perfekt i PHP men som till\u00e5ter mycket. Med hj\u00e4lp av ytterligare bibliotek som t.ex. <a href=\"https:\/\/thecodest.co\/sv\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova kan vi skapa n\u00e4stan alla komponenter i v\u00e5rt system med bara tv\u00e5 kommandon.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Eftergl\u00f6d<\/h2>\n\n\n\n<p>\u200b<br>\u00c4r <strong>PHP<\/strong> ...d\u00f6ende?<\/p>\n\n\n\n<p>Nej, men det har ett imageproblem och det kr\u00e4vs mycket arbete f\u00f6r att f\u00f6rb\u00e4ttra det. Vi programmerare m\u00e5ste g\u00f6ra detta arbete genom att undervisa den nya generationen och f\u00f6rmedla b\u00e4sta praxis i form av artiklar, bibliotek och tips.<\/p>\n\n\n\n<p>Som ett spr\u00e5k som har varit p\u00e5 tapeten <a href=\"https:\/\/thecodest.co\/sv\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">marknad<\/a> i tjugo \u00e5r, som redan har \u00f6verlevt mer \u00e4n en <code>hype<\/code> (minns du Objective-C?) Jag tror att det kommer att klara sig och hitta sin nisch.<br>\u200b<br>Och vem vet, kanske kommer mina f\u00f6ruts\u00e4gelser att visa sig vara korrekta och PHP 10.x kommer att blomstra igen om tv\u00e5 \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=\"samarbetsbanner\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Som PHP-utvecklare minns jag fortfarande dagarna med PHP4, den f\u00f6rsta (valfria!) GC-implementeringen i PHP5, och jag levde genom _hype_ av tillkomsten av PHP7 och dess f\u00f6rgreningar.<\/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\/sv\/blogg\/tva-skal-till-att-inte-anvanda-php\/\" \/>\n<meta property=\"og:locale\" content=\"sv_SE\" \/>\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\/sv\/blogg\/tva-skal-till-att-inte-anvanda-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\":\"sv-SE\",\"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\":\"sv-SE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@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\":\"sv-SE\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"sv-SE\",\"@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\":\"sv-SE\",\"@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\\\/sv\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Tv\u00e5 sk\u00e4l till att du inte b\u00f6r anv\u00e4nda PHP - The Codest","description":"Som PHP-utvecklare minns jag fortfarande dagarna med PHP4, den f\u00f6rsta (valfria!) GC-implementeringen i PHP5, och jag levde genom _hype_ av tillkomsten av PHP7 och dess f\u00f6rgreningar.","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\/sv\/blogg\/tva-skal-till-att-inte-anvanda-php\/","og_locale":"sv_SE","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\/sv\/blogg\/tva-skal-till-att-inte-anvanda-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":"sv-SE","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":"Tv\u00e5 sk\u00e4l till att du inte b\u00f6r anv\u00e4nda 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-utvecklare minns jag fortfarande dagarna med PHP4, den f\u00f6rsta (valfria!) GC-implementeringen i PHP5, och jag levde genom _hype_ av tillkomsten av PHP7 och dess f\u00f6rgreningar.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"sv-SE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"sv-SE","@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":"sv-SE"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"sv-SE","@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":"sv-SE","@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\/sv\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/sv\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}