{"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":"tvaer-astaedur-fyrir-thvi-ad-thu-aettir-ekki-ad-nota-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/is\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Tv\u00e6r \u00e1st\u00e6\u00f0ur fyrir \u00fev\u00ed a\u00f0 \u00fe\u00fa \u00e6ttir ekki a\u00f0 nota PHP"},"content":{"rendered":"<p>\u00cd gegnum \u00e1rin hafa margir spurt mig hvers vegna \u00e9g nenni \u00feessu. <strong>forritun \u00ed <a href=\"https:\/\/thecodest.co\/is\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>, og \u00ed m\u00f6rg \u00e1r hef \u00e9g heyrt eins og mantra tv\u00f6 endurtekin r\u00f6k fyrir \u00fev\u00ed a\u00f0 \u00e9g \u00e6tti a\u00f0 h\u00e6tta og byrja a\u00f0 skrifa vi\u00f0skiptalegan hugb\u00fana\u00f0 \u00ed forritunarm\u00e1lum eins og <a href=\"https:\/\/thecodest.co\/is\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> e\u00f0a C#.<br>\u200b<br>\u00cd dag \u00e6tla \u00e9g a\u00f0 vitna \u00ed \u00feessar r\u00f6ksemdir og reyna a\u00f0 breyta vi\u00f0horfi \u00fe\u00ednu til <strong>PHP<\/strong> a\u00f0 minnsta kosti sm\u00e1vegis. J\u00e1, titill \u00feessa greinar er f\u00e1r\u00e1nlegt smellibeit.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176123016-0c45e1e9-5c0a-48f2-ae4a-54d8960003a1.png\" alt=\"mynd\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP er a\u00f0 deyja<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> er a\u00f0 deyja \u00e1r eftir \u00e1r. S\u00e1 sem \u00e1\u00f0ur var vins\u00e6lastur <a href=\"https:\/\/thecodest.co\/is\/blog\/find-your-ideal-stack-for-web-development\/\">vefur<\/a> m\u00e1l er n\u00fa a\u00f0 missa vins\u00e6ldir m\u00e1na\u00f0arlega, a\u00f0allega til <a href=\"https:\/\/thecodest.co\/is\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>\u00deegar \u00fe\u00fa sko\u00f0ar t\u00f6lurnar, er sannleikurinn hreint \u00fat sagt hrollvekjandi! \u00c1 s\u00ed\u00f0asta \u00e1ri, <strong>PHP<\/strong> Missti g\u00edfurlega 1,6% af s\u00ednum hlutdeild sem bakenda\u00adm\u00e1l vefsins.<\/p>\n\n\n\n<p>\u200b<br>Ef <strong>PHP<\/strong> heldur \u00e1fram \u00feessari ni\u00f0urlei\u00f0, eftir 18 \u00e1r <strong>PHP<\/strong> mun detta undir 50% \u00ed bakenda vef-t\u00e6kni!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"S\u00f6gulegar \u00fer\u00f3anir \u00ed notkunart\u00f6lfr\u00e6\u00f0i net\u00fej\u00f3nshli\u00f0ar forritunarm\u00e1la fyrir vefs\u00ed\u00f0ur\"><\/p>\n\n\n\n<p>\u200b<br>En allavega, brandarar til hli\u00f0ar \u2013 \u00fe\u00f3 t\u00f6lurnar s\u00e9u raunverulegar <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">eins og greint var fr\u00e1 af W3CTechs<\/a>.<\/p>\n\n\n\n<p>Fyrsta tilv\u00edsunin sem <strong>PHP<\/strong> Uppl\u00fdsingar um a\u00f0 hann s\u00e9 a\u00f0 deyja m\u00e1 finna \u00e1 vefnum s\u00ed\u00f0an 2013. \u00c1 \u00feeim t\u00edma Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">Grein var birt<\/a> (sem \u00e9g m\u00e6li eindregi\u00f0 me\u00f0!) a\u00f0 PHP muni deyja vegna \u00feess a\u00f0 \u00fea\u00f0 sty\u00f0ur ekki langl\u00edf ferli og skortir \u00f3samstillta vinnu.<\/p>\n\n\n\n<p>\u200b<br>Og \u00fea\u00f0 er sta\u00f0reynd., <strong>PHP<\/strong> var ekki gert fyrir \u00fea\u00f0!<\/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>Ef allt sem \u00fe\u00fa \u00e1tt er hamar, l\u00edtur allt \u00fat eins og nagl<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>En aftur a\u00f0 t\u00f6lunum \u2013 skulum vi\u00f0 l\u00edta \u00e1 t\u00f6lur s\u00ed\u00f0asta \u00e1rs <a href=\"https:\/\/thecodest.co\/is\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">g\u00f6gn<\/a> \u00e1 <strong>PHP<\/strong> \u00fatg\u00e1fur sem nota\u00f0ar eru \u00ed Packagist-pakkum. N\u00fdjustu g\u00f6gnin eru f\u00e1anleg \u00e1 upprunalegri vefs\u00ed\u00f0u. <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=\"Uppsetningar pakka eftir minni \u00fatg\u00e1fu PHP graf\u00edk\" title=\"Uppsetningar pakka eftir minni \u00fatg\u00e1fu PHP\"\/><\/figure>\n\n\n\n<p>\u200b<br>Er \u00feetta uppt\u00f6kul\u00ednan fyrir n\u00fdjar \u00fatg\u00e1fur af dv\u00edgnum forritunarm\u00e1li?<\/p>\n\n\n\n<p>\u200b<br>Ef \u00fea\u00f0 er ekki n\u00f3g, skulum vi\u00f0 bera \u201cPHP dau\u00f0ahlutfalli\u00f0\u201d okkar saman vi\u00f0 \u00f6nnur tungum\u00e1l.<br>\u200b<\/p>\n\n\n\n<p>G\u00f6gnin fyrir greininguna eru tekin \u00far \u200b<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, sem b\u00fdr til t\u00f6flu yfir fj\u00f6lda <code>Git-p\u00fas<\/code> \u00e1 hverju tungum\u00e1li \u00e1 GitHub s\u00ed\u00f0an 2012, samkv\u00e6mt kerfinu \u2013 \u201cHlutfallst\u00f6lur tungum\u00e1la \u00ed l\u00ednuriti s\u00fdna efstu 10 (e\u00f0a handv\u00f6ld) tungum\u00e1l s\u00ed\u00f0an 2012\/Q2\u201d.<\/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=\"grafur yfir pr\u00f3sentudreifingu \u00ed forritunarm\u00e1li\" title=\"hlutfalladreifing forritunarm\u00e1la \"\/><\/figure>\n\n\n\n<p>\u200b<br>Eins og \u00fe\u00fa s\u00e9r\u00f0 <strong>PHP<\/strong> sem og \u00f6nnur vins\u00e6l tungum\u00e1l eins og <a href=\"https:\/\/thecodest.co\/is\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">R\u00fab\u00edn<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-python-good-for\/\">Python<\/a> \u00deau hafa upplifa\u00f0 verulega l\u00e6kkun \u00ed vins\u00e6ldum \u00e1 Github \u00e1 undanf\u00f6rnum \u00e1rum, en \u00fe\u00f3 er uppstreymi og vi\u00f0 b\u00faumst vi\u00f0 a\u00f0 \u00feau komi aftur \u00e1 h\u00e1ar st\u00f6\u00f0ur eftir lengri hli\u00f0l\u00e6gan fasa. <em>(\u00deetta er ekki fj\u00e1rfestingarr\u00e1\u00f0gj\u00f6f)<\/em><\/p>\n\n\n\n<p>\u200b<br>Upphaflega <code>hype<\/code> fyrir Javascript-m\u00e1lun m\u00e1 sj\u00e1 \u00ed sama myndlinunni. \u00c9g l\u00e6t ni\u00f0urst\u00f6\u00f0urnar og greininguna eftir \u00fe\u00e9r, k\u00e6ri lesandi.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"mynd\"><\/p>\n\n\n\n<p>\u200b<br>En aftur \u00e1 m\u00f3ti \u00e6tti deyjandi tungum\u00e1l ekki a\u00f0 auka fj\u00f6lda starfstilbo\u00f0a fyrir forritara, er \u00fea\u00f0 ekki?<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=\"mynd\"\/><\/figure>\n\n\n\n<p>\u200b<br>\u00deegar \u00feetta er skrifa\u00f0 get \u00e9g vali\u00f0 \u00far 171 starfstilbo\u00f0i \u00e1 einum af helstu starfavefjum \u00ed <a href=\"https:\/\/thecodest.co\/is\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">P\u00f3lland<\/a>, af \u00feeim eru allt a\u00f0 50 \u00e6tlu\u00f0 unglingum. <strong>PHP<\/strong> er a\u00f0 deyja, ekki satt?<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 a\u00f0 deyja \" title=\"PHP er a\u00f0 deyja meme \"\/><\/figure>\n\n\n\n<p>Og \u00feegar tala\u00f0 er um peninga\u2026 vissir \u00fe\u00fa a\u00f0 <strong>PHP<\/strong> og uppruni \u00feess <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-code-refactoring\/\">k\u00f3\u00f0i<\/a> hefur veri\u00f0 vi\u00f0haldi\u00f0 s\u00ed\u00f0an \u00ed n\u00f3vember 2021 af <em>sj\u00e1lfst\u00e6tt opinn k\u00f3\u00f0i<\/em> samf\u00e9lag<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">PHP-stofnunin<\/a> sem <strong>grei\u00f0ir verulega peninga<\/strong> til OpenSource-\u00fer\u00f3unara\u00f0ila fyrir framlag til <code>php-uppspretta<\/code>?<\/p>\n\n\n\n<p>\u00d3l\u00edkt \u00f6\u00f0rum forritunarm\u00e1lum og rammaskipulagi, sem oft eru \u00ed eigu st\u00f3rra fyrirt\u00e6kja, kjarna\u00fer\u00f3unin <a href=\"https:\/\/thecodest.co\/is\/dictionary\/how-to-lead-software-development-team\/\">li\u00f0<\/a> er greitt beint af reikningi stofnunarinnar sem er rekinn me\u00f0 framl\u00f6gum fr\u00e1 einkafyrirt\u00e6kjum eins og JetBrains og Symfony Corp en einnig af \u200b<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">sm\u00e1 framl\u00f6g fr\u00e1 einst\u00f6kum forriturum<\/a>.<\/p>\n\n\n\n<p>Opinn k\u00f3\u00f0i \u00ed allri sinni d\u00fdr\u00f0!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP er hr\u00e6\u00f0ilegt<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>J\u00e1, \u00feessi r\u00f6ksemd kemur alltaf fr\u00e1 forriturum sem hafa kynnst str\u00f6ngu, samanbur\u00f0arh\u00e6fu forritunarm\u00e1li.<br>\u200b<br>A\u00f0 sko\u00f0a l\u00ednurit gagna sem safna\u00f0 var \u00e1 me\u00f0an \u200b<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">StackOverflow k\u00f6nnun<\/a> \u00c1ri\u00f0 2021 m\u00e1 sj\u00e1 a\u00f0 allt a\u00f0 10.834 svarendur, sem standa fyrir n\u00e6stum 60,1% heildarinnar, t\u00f6ldu PHP vera \u201chr\u00e6\u00f0ilegt\u201d.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"mynd\"><br>\u200b<br>Sem g\u00f6mlu sk\u00f3lanum <strong>PHP forritari<\/strong>, \u00e9g skil af hverju \u00feetta er svona. \u00c9g man strax eftir klass\u00edsku d\u00e6mi um minnisvandam\u00e1l \u00ed <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong>Hva\u00f0 gerir\u00f0u me\u00f0 \u00feessu?<\/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 \"Minnisnotkun: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>Fyrir \u00f3kunnuga \u2013 j\u00e1, k\u00f3\u00f0inn h\u00e9r a\u00f0 ofan veldur minnisvillu. Og \u00fea\u00f0 er meira. Fr\u00e1 heimskulegu nafni a\u00f0fer\u00f0anna og algerri skorti \u00e1 r\u00f6kv\u00edsi \u00ed r\u00f6\u00f0inni \u00e1 breytunum \u00feeirra (j\u00e1, vi\u00f0 elskum \u00f6ll <code>str_<\/code> og <code>ra\u00f0_<\/code>) a\u00f0 fr\u00e6gustu galla PHP <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> \u2013 PHP er fullt af s\u00e9rkennileikum og g\u00f6llum eldri \u00fatg\u00e1fa. \u00deetta \u00fe\u00fd\u00f0ir ekki a\u00f0 \u00fea\u00f0 sem vi\u00f0 heyr\u00f0um um <strong>PHP<\/strong> Fyrir nokkrum \u00e1rum var \u00feetta enn satt. M\u00e1lfari\u00f0 hefur gengi\u00f0 \u00ed gegnum gr\u00ed\u00f0arlega umbreytingu og \u00ed dag er \u00e9g \u00e1n\u00e6g\u00f0ur a\u00f0 sko\u00f0a skilgreiningar hlutanna:<\/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>Enn fremur, <strong>PHP vistkerfi<\/strong> \u00dea\u00f0 hefur vaxi\u00f0 g\u00edfurlega, og vi\u00f0 h\u00f6fum n\u00fa \u00f3tr\u00faleg t\u00e6kif\u00e6ri til a\u00f0 b\u00faa til g\u00f3\u00f0an, vel ger\u00f0an og vel pr\u00f3fa\u00f0an k\u00f3\u00f0a. Vi\u00f0 getum nota\u00f0 <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">a\u00f0 \u00fer\u00f3a DDD-forrit<\/a> \u00e1n nokkurra verulegra vandam\u00e1la, og vi\u00f0 getum komist hj\u00e1 samstilld vandam\u00e1li PHP me\u00f0 \u00fev\u00ed a\u00f0 nota Message Bus.<\/p>\n\n\n\n<p>Og \u00fe\u00f3 \u00e9g sj\u00e1lfur tel ekki <strong>PHP<\/strong> er hentugt til a\u00f0 b\u00faa til langl\u00edfar bakendaferla og hefur gr\u00ed\u00f0arleg frammist\u00f6\u00f0uvandam\u00e1l \u00feegar kemur a\u00f0 samstillingu \u00e1standi, \u00e9g hef einnig \u200b<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">bj\u00f3 til PHP leikjat\u00f6lvuleik<\/a> a\u00f0 nota Symfony + <a href=\"https:\/\/thecodest.co\/is\/dictionary\/docker-developer\/\">Docker<\/a> me\u00f0 eigin h\u00f6ndum sem d\u00e6mi um a\u00f0 PHP geti enn haft \u00f3hef\u00f0bundna notkun.<\/p>\n\n\n\n<p>\u200b<br>Anna\u00f0 <strong>forskot PHP<\/strong> er l\u00e1gur inngangur fyrir n\u00fdja \u00fer\u00f3unara\u00f0ila. Skj\u00f6l um tv\u00f6 vins\u00e6l rammas\u00f6fn, Symfony og \u200b<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> og <strong>PHP<\/strong> Skj\u00f6lin sj\u00e1lf duga til a\u00f0 st\u00edga inn \u00ed backend-heiminn me\u00f0 \u00feeirra hj\u00e1lp. Heimur sem er ekki fullkominn \u00ed PHP en b\u00fd\u00f0ur upp \u00e1 margt. Me\u00f0 \u00fev\u00ed a\u00f0 nota vi\u00f0b\u00f3tarb\u00f3kas\u00f6fn eins og <a href=\"https:\/\/thecodest.co\/is\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova getum vi\u00f0 b\u00fai\u00f0 til n\u00e1nast hva\u00f0a \u00fe\u00e1tt kerfisins sem er me\u00f0 a\u00f0eins tveimur skipunum.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Eftirgl\u00f3\u00f0<\/h2>\n\n\n\n<p>\u200b<br>Er <strong>PHP<\/strong> dau\u00f0andi?<\/p>\n\n\n\n<p>Nei, en \u00fea\u00f0 hefur \u00edmyndarvanda og \u00fearf mikla vinnu til a\u00f0 b\u00e6ta \u00fea\u00f0. Vi\u00f0, forritararnir, ver\u00f0um a\u00f0 gera \u00feessa vinnu me\u00f0 \u00fev\u00ed a\u00f0 kenna n\u00fdju kynsl\u00f3\u00f0inni og mi\u00f0la bestu starfsh\u00e1ttum \u00ed formi greina, b\u00f3kasafna og r\u00e1\u00f0legginga.<\/p>\n\n\n\n<p>Sem tungum\u00e1l sem hefur veri\u00f0 \u00e1 <a href=\"https:\/\/thecodest.co\/is\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">marka\u00f0ur<\/a> \u00ed tuttugu \u00e1r, sem hefur \u00feegar lifa\u00f0 af meira en eitt <code>hype<\/code> (manstu eftir Objective-C?) \u00c9g held a\u00f0 \u00fea\u00f0 muni r\u00e1\u00f0a vi\u00f0 \u00fea\u00f0 og finna sinn sess.<br>\u200b<br>Og hver veit, kannski reynast sp\u00e1r m\u00ednar r\u00e9ttar og PHP 10.x bl\u00f3mstri aftur eftir tv\u00f6 \u00e1r?<\/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=\"samstarfsf\u00e1ninn\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Sem PHP-\u00fer\u00f3unara\u00f0ili man \u00e9g enn eftir d\u00f6gum PHP4, fyrstu (valkv\u00e6\u00f0u!) GC-innlei\u00f0ingunni \u00ed PHP5, og \u00e9g lif\u00f0i \u00ed gegnum _hype_ um komu PHP7 og aflei\u00f0ingar hennar.<\/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\/is\/blogg\/tvaer-astaedur-fyrir-thvi-ad-thu-aettir-ekki-ad-nota-php\/\" \/>\n<meta property=\"og:locale\" content=\"is_IS\" \/>\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\/is\/blogg\/tvaer-astaedur-fyrir-thvi-ad-thu-aettir-ekki-ad-nota-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\":\"is\",\"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\":\"is\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@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\":\"is\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"is\",\"@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\":\"is\",\"@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\\\/is\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Tv\u00e6r \u00e1st\u00e6\u00f0ur fyrir \u00fev\u00ed a\u00f0 \u00fe\u00fa \u00e6ttir ekki a\u00f0 nota PHP - The Codest","description":"Sem PHP-\u00fer\u00f3unara\u00f0ili man \u00e9g enn eftir d\u00f6gum PHP4, fyrstu (valkv\u00e6\u00f0u!) GC-innlei\u00f0ingunni \u00ed PHP5, og \u00e9g lif\u00f0i \u00ed gegnum _hype_ um komu PHP7 og aflei\u00f0ingar hennar.","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\/is\/blogg\/tvaer-astaedur-fyrir-thvi-ad-thu-aettir-ekki-ad-nota-php\/","og_locale":"is_IS","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\/is\/blogg\/tvaer-astaedur-fyrir-thvi-ad-thu-aettir-ekki-ad-nota-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":"is","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\u00e6r \u00e1st\u00e6\u00f0ur fyrir \u00fev\u00ed a\u00f0 \u00fe\u00fa \u00e6ttir ekki a\u00f0 nota 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":"Sem PHP-\u00fer\u00f3unara\u00f0ili man \u00e9g enn eftir d\u00f6gum PHP4, fyrstu (valkv\u00e6\u00f0u!) GC-innlei\u00f0ingunni \u00ed PHP5, og \u00e9g lif\u00f0i \u00ed gegnum _hype_ um komu PHP7 og aflei\u00f0ingar hennar.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"is","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"is","@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":"is"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"is","@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":"is","@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\/is\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/is\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"vp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}