{"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":"due-motivi-per-non-usare-il-php","status":"publish","type":"post","link":"https:\/\/thecodest.co\/it\/blog\/two-reasons-you-should-not-use-php\/","title":{"rendered":"Due motivi per non usare PHP"},"content":{"rendered":"<p>Nel corso degli anni molte persone mi hanno chiesto perch\u00e9 mi preoccupo di <strong>programmazione in <a href=\"https:\/\/thecodest.co\/it\/dictionary\/how-to-hire-a-php-developer\/\">PHP<\/a><\/strong>e per molti anni ho sentito come un mantra due argomentazioni ricorrenti per cui dovrei smettere e iniziare a scrivere software commerciale in linguaggi come <a href=\"https:\/\/thecodest.co\/it\/blog\/top-programming-languages-to-build-e-commerce\/\">Java<\/a> o C#.<br>\u200b<br>Oggi citer\u00f2 queste argomentazioni e cercher\u00f2 di cambiare il vostro atteggiamento nei confronti di <strong>PHP<\/strong> almeno un po'. S\u00ec, il titolo di questo articolo \u00e8 un assurdo 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=\"immagine\"><br>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#1 PHP sta morendo<\/h2>\n\n\n\n<p>\u200b<br><strong>PHP<\/strong> sta morendo anno dopo anno. L'ex pi\u00f9 popolare <a href=\"https:\/\/thecodest.co\/it\/blog\/find-your-ideal-stack-for-web-development\/\">web<\/a> La lingua sta perdendo popolarit\u00e0 di mese in mese, soprattutto a causa della <a href=\"https:\/\/thecodest.co\/it\/dictionary\/why-is-javascript-so-popular\/\">JavaScript<\/a>.<\/p>\n\n\n\n<p>\u200b<br>Se si guarda ai numeri, la verit\u00e0 \u00e8 sconfortante! Nell'ultimo anno, <strong>PHP<\/strong> ha perso uno sconcertante 1,6% della sua quota come linguaggio di backend del Web.<\/p>\n\n\n\n<p>\u200b<br>Se <strong>PHP<\/strong> continua questa tendenza al ribasso, in 18 anni <strong>PHP<\/strong> scender\u00e0 al di sotto del 50% della tecnologia Web backend!<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176105714-fc5c2c57-6ae2-445a-a133-ac06f3125b2d.png\" alt=\"Tendenze storiche nelle statistiche di utilizzo dei linguaggi di programmazione lato server per i siti web\"><\/p>\n\n\n\n<p>\u200b<br>Ma ok, a parte gli scherzi - anche se i numeri sono reali <a href=\"https:\/\/w3techs.com\/technologies\/history_overview\/programming_language\" rel=\"nofollow\">come riportato da W3CTechs<\/a>.<\/p>\n\n\n\n<p>La prima menzione che <strong>PHP<\/strong> sta morendo pu\u00f2 essere trovato sul web dal 2013. All'epoca Software Gunslinger <a href=\"https:\/\/softwaregunslinger.tumblr.com\/post\/47131406821\/php-is-meant-to-die\" rel=\"nofollow\">ha pubblicato un articolo<\/a> (che tra l'altro raccomando caldamente!) che dice che PHP morir\u00e0 perch\u00e9 non supporta processi di lunga durata e perch\u00e9 manca di asincronicit\u00e0.<\/p>\n\n\n\n<p>\u200b<br>E questo \u00e8 un dato di fatto, <strong>PHP<\/strong> non \u00e8 stato creato per questo!<\/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>se tutto ci\u00f2 che si ha \u00e8 un martello, tutto sembra un chiodo<\/p>\n<\/blockquote>\n\n\n\n<p>\u200b<br>Ma torniamo ai numeri: diamo un'occhiata ai dati dello scorso anno. <a href=\"https:\/\/thecodest.co\/it\/blog\/app-data-collection-security-risks-value-and-types-explored\/\">dati<\/a> su <strong>PHP<\/strong> versioni utilizzate nei pacchetti Packagist. I dati pi\u00f9 recenti sono disponibili sul sito della fonte <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=\"Installazioni di pacchetti per PHP grafico delle versioni minori\" title=\"Installazioni di pacchetti per versione minore PHP\"\/><\/figure>\n\n\n\n<p>\u200b<br>\u00c8 questa la curva di adozione delle nuove versioni di un linguaggio di programmazione in via di estinzione?<\/p>\n\n\n\n<p>\u200b<br>Se ci\u00f2 non bastasse, verifichiamo il nostro \"tasso di mortalit\u00e0 PHP\" rispetto ad altre lingue.<br>\u200b<\/p>\n\n\n\n<p>I dati per l'analisi sono tratti da<a href=\"https:\/\/madnight.github.io\/githut\/#\/pushes\/2022\/1\" rel=\"nofollow\">GitHut 2.0<\/a>, che genera un grafico del numero di <code>git push<\/code> per lingua su Github dal 2012, secondo lo schema - \"La distribuzione percentuale delle lingue nel grafico a linee mostra le prime 10 lingue (o selezionate manualmente) dal 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=\"grafico di distribuzione delle percentuali dei linguaggi di programmazione\" title=\"distribuzione percentuale dei linguaggi di programmazione \"\/><\/figure>\n\n\n\n<p>\u200b<br>Come si pu\u00f2 vedere <strong>PHP<\/strong> cos\u00ec come altre lingue popolari come <a href=\"https:\/\/thecodest.co\/it\/case-studies\/providing-a-team-of-ruby-developers-for-a-fintech-company\/\">Rubino<\/a>, C\/C++, <a href=\"https:\/\/thecodest.co\/it\/dictionary\/what-is-python-good-for\/\">Python<\/a> hanno subito un notevole calo di popolarit\u00e0 su Github negli ultimi anni, ma c'\u00e8 una tendenza al rialzo e ci aspettiamo che tornino ad occupare posizioni di rilievo dopo un periodo laterale pi\u00f9 lungo. <em>(questa non \u00e8 una consulenza sugli investimenti)<\/em><\/p>\n\n\n\n<p>\u200b<br>L'iniziale <code>hype<\/code> per il linguaggio Javascript \u00e8 visibile nello stesso grafico. Lascio a voi, cari lettori, le conclusioni e la relativa analisi.<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176109091-38a63b8f-e240-4c98-9ce6-27fb6f77e5c0.png\" alt=\"immagine\"><\/p>\n\n\n\n<p>\u200b<br>Ma d'altra parte - una lingua in via di estinzione non dovrebbe tendere ad aumentare il numero di offerte di lavoro per i programmatori, giusto?<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=\"immagine\"\/><\/figure>\n\n\n\n<p>\u200b<br>Al momento della stesura di questo articolo, posso scegliere tra 171 offerte di lavoro su uno dei principali portali di lavoro in Italia. <a href=\"https:\/\/thecodest.co\/it\/blog\/the-codest-guide-how-to-successfully-outsource-from-poland\/\">Polonia<\/a>di cui ben 50 per i giovani. <strong>PHP<\/strong> sta morendo, giusto?<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=\"Meme PHP - php sta morendo \" title=\"PHP \u00e8 un meme in via di estinzione \"\/><\/figure>\n\n\n\n<p>E a proposito di soldi... lo sapevate che <strong>PHP<\/strong> e la sua fonte <a href=\"https:\/\/thecodest.co\/it\/dictionary\/what-is-code-refactoring\/\">codice<\/a> \u00e8 stato mantenuto dal novembre 2021 dal <em>indipendente Open Source<\/em> comunit\u00e0<a href=\"https:\/\/opencollective.com\/phpfoundation#category-ABOUT\" rel=\"nofollow\">La Fondazione PHP<\/a> che <strong>paga una cifra consistente<\/strong> agli sviluppatori OpenSource per i contributi a <code>php-src<\/code>?<\/p>\n\n\n\n<p>A differenza di altri linguaggi e framework, che spesso sono di propriet\u00e0 di grandi aziende, il nucleo dello sviluppo <a href=\"https:\/\/thecodest.co\/it\/dictionary\/how-to-lead-software-development-team\/\">squadra<\/a> \u00e8 pagata direttamente dal conto della fondazione, che \u00e8 gestita dai contributi di aziende private come JetBrains e Symfony Corp ma anche da<a href=\"https:\/\/opencollective.com\/phpfoundation#category-CONTRIBUTE\" rel=\"nofollow\">piccoli contributi da parte di singoli sviluppatori<\/a>.<\/p>\n\n\n\n<p>L'Open Source in tutto il suo splendore!<\/p>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">#2 PHP \u00e8 terribile<\/h2>\n\n\n\n<p>\u200b<\/p>\n\n\n\n<p>S\u00ec, questo argomento proviene sempre dalla bocca di sviluppatori che hanno acquisito familiarit\u00e0 con linguaggi fortemente tipizzati e comparabili.<br>\u200b<br>Osservando il grafico dei dati raccolti durante il<a href=\"https:\/\/insights.stackoverflow.com\/survey\/2021#most-loved-dreaded-and-wanted\" rel=\"nofollow\">Sondaggio su StackOverflow<\/a> del 2021, si pu\u00f2 notare che ben 10.834 intervistati, pari a quasi 60% del totale, hanno trovato PHP \"terribile\".<\/p>\n\n\n\n<p>\u200b<br><img decoding=\"async\" src=\"\/app\/uploads\/2024\/05\/176115975-3c189a18-0ee4-4cc7-87f2-9315c08e4518.png\" alt=\"immagine\"><br>\u200b<br>Come una vecchia scuola <strong>Programmatore PHP<\/strong>capisco il perch\u00e9 di questa situazione. Mi viene subito in mente un classico esempio di problemi di memoria in <strong>PHP<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\"><strong><p>.<\/strong>\n\nclasse FOO {\n  public $f;\n}\n\nclasse BAR {\n  public $f;\n}\n\nwhile(1) {\n  $a = nuovo FOO();\n  $b = nuovo BAR();\n  $a-&gt;f = $b;\n  $b-&gt;f = $a;\n  print \"Utilizzo della memoria: \" . number_format(memory_get_usage(true)) . \" bytesn\";\n  unset($a);\n  unset($b);\n}<\/code><\/pre>\n\n\n\n<p>Per chi non lo sapesse, il codice sopra riportato causa un errore di memoria. E c'\u00e8 di pi\u00f9. A partire dalla denominazione idiota dei metodi e dalla completa mancanza di logica nell'ordine dei loro parametri (s\u00ec, tutti noi amiamo <code>str_<\/code> e <code>array_<\/code>) al pi\u00f9 famoso bug dell'PHP <code>T_PAAMAYIM_NEKUDOTAYIM<\/code> - L'PHP \u00e8 pieno di stranezze e vizi delle vecchie versioni. Questo non significa che ci\u00f2 che abbiamo sentito dire su <strong>PHP<\/strong> qualche anno fa \u00e8 ancora vero. Il linguaggio ha subito un'enorme metamorfosi e oggi sono felice di guardare le mie definizioni di oggetti:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">readonly classe NotificationEvent\n{\n    public function __construct(\n        public stringa $context,\n        public User $user,\n        public string $body,\n        public DateTime $issuedAt,\n    ) {}\n}<\/code><\/pre>\n\n\n\n<p>Inoltre, il <strong>Ecosistema PHP<\/strong> \u00e8 cresciuta enormemente e oggi abbiamo incredibili opportunit\u00e0 di creare codice di qualit\u00e0, altamente tipizzato e ben testato. Possiamo usare <strong>Symfony<\/strong> \u200b<a href=\"https:\/\/github.com\/CodelyTV\/php-ddd-example\" rel=\"nofollow\">per sviluppare applicazioni DDD<\/a> senza grossi problemi e possiamo aggirare il problema della sincronia di PHP usando Message Bus.<\/p>\n\n\n\n<p>E sebbene io stesso non pensi che <strong>PHP<\/strong> \u00e8 adatto per la creazione di processi backend a lunga durata e ha enormi problemi di prestazioni quando si tratta di sincronizzazione dello stato, ho anche<a href=\"https:\/\/github.com\/sebastianluczak\/php-roguelike\" rel=\"nofollow\">ha creato un gioco per console PHP<\/a> utilizzando Symfony + <a href=\"https:\/\/thecodest.co\/it\/dictionary\/docker-developer\/\">Docker<\/a> con le mie mani come esempio che l'PHP pu\u00f2 ancora avere usi non convenzionali.<\/p>\n\n\n\n<p>\u200b<br>Un altro <strong>vantaggio di PHP<\/strong> \u00e8 la sua bassa barriera d'ingresso per i nuovi sviluppatori. Le documentazioni di due popolari framework Symfony e<a href=\"https:\/\/laravel.com\/docs\/9.x\/installation\" rel=\"nofollow\">Laravel<\/a> e <strong>PHP<\/strong> La documentazione stessa \u00e8 sufficiente per entrare nel mondo del backend con il loro aiuto. Un mondo che non \u00e8 perfetto in PHP ma che permette molto. Utilizzando librerie aggiuntive come <a href=\"https:\/\/thecodest.co\/it\/blog\/advantages-of-laravel-services-for-your-business\/\">Laravel<\/a> Nova \u00e8 in grado di creare quasi tutti i componenti del nostro sistema con due soli comandi.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Bagliore di luce<\/h2>\n\n\n\n<p>\u200b<br>\u00c8 <strong>PHP<\/strong> morire?<\/p>\n\n\n\n<p>No, ma ha un problema di immagine e ha bisogno di molto lavoro per migliorarla. Noi, i programmatori, dobbiamo fare questo lavoro insegnando alle nuove generazioni e trasmettendo le migliori pratiche sotto forma di articoli, librerie e suggerimenti.<\/p>\n\n\n\n<p>Come lingua che \u00e8 stata sul <a href=\"https:\/\/thecodest.co\/it\/dictionary\/what-is-the-size-of-your-potential-reachable-market\/\">mercato<\/a> da vent'anni, che \u00e8 gi\u00e0 sopravvissuto a pi\u00f9 di una <code>hype<\/code> (ricordate Objective-C?) Penso che ce la far\u00e0 e trover\u00e0 la sua nicchia.<br>\u200b<br>E chiss\u00e0, forse le mie previsioni si riveleranno corrette e l'PHP 10.x far\u00e0 di nuovo il boom tra due anni?<\/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=\"banner di cooperazione\"\/><\/a><\/figure>","protected":false},"excerpt":{"rendered":"<p>Come sviluppatore PHP ricordo ancora i giorni dell'PHP4, la prima implementazione (opzionale!) del GC nell'PHP5, e ho vissuto il _hype_ dell'avvento dell'PHP7 e le sue ramificazioni.<\/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\/it\/blog\/due-motivi-per-non-usare-il-php\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\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\/it\/blog\/due-motivi-per-non-usare-il-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 minuti\" \/>\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\":\"it-IT\",\"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\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thecodest.co\\\/blog\\\/two-reasons-you-should-not-use-php\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@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\":\"it-IT\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thecodest.co\\\/#organization\",\"name\":\"The Codest\",\"url\":\"https:\\\/\\\/thecodest.co\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@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\":\"it-IT\",\"@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\\\/it\\\/author\\\/thecodest\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Due motivi per non utilizzare PHP - The Codest","description":"Come sviluppatore PHP ricordo ancora i giorni dell'PHP4, la prima implementazione (opzionale!) del GC nell'PHP5, e ho vissuto il _hype_ dell'avvento dell'PHP7 e le sue ramificazioni.","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\/it\/blog\/due-motivi-per-non-usare-il-php\/","og_locale":"it_IT","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\/it\/blog\/due-motivi-per-non-usare-il-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 minuti"},"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":"it-IT","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":"Due motivi per non utilizzare 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":"Come sviluppatore PHP ricordo ancora i giorni dell'PHP4, la prima implementazione (opzionale!) del GC nell'PHP5, e ho vissuto il _hype_ dell'avvento dell'PHP7 e le sue ramificazioni.","breadcrumb":{"@id":"https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thecodest.co\/blog\/two-reasons-you-should-not-use-php\/"]}]},{"@type":"ImageObject","inLanguage":"it-IT","@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":"it-IT"},{"@type":"Organization","@id":"https:\/\/thecodest.co\/#organization","name":"The Codest","url":"https:\/\/thecodest.co\/","logo":{"@type":"ImageObject","inLanguage":"it-IT","@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":"it-IT","@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\/it\/author\/thecodest\/"}]}},"_links":{"self":[{"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/posts\/3780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/comments?post=3780"}],"version-history":[{"count":10,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/posts\/3780\/revisions"}],"predecessor-version":[{"id":8090,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/posts\/3780\/revisions\/8090"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/media\/3781"}],"wp:attachment":[{"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/media?parent=3780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/categories?post=3780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thecodest.co\/it\/wp-json\/wp\/v2\/tags?post=3780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}