Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112053 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33131 invoked from network); 14 Oct 2020 00:41:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Oct 2020 00:41:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A39EF1804B7 for ; Tue, 13 Oct 2020 16:56:18 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12olkn2037.outbound.protection.outlook.com [40.92.22.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 13 Oct 2020 16:56:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O67XG6sgKXpHFwQu7yvN4vwQUSzzRJA0bYzjbgHR/9qFjAXm8KtMmjLLNaDg1WeY8gZz1lu0lqgKb4TF5eOuMdHESm+NsPBk0tJfQrsqoDjaCjTxfb8EKs3sCqAfdxEbSkIpGpa22wBXYcig54pPldXDgza2nsTPlQnySK5ulJ1U0Vmd/a/9GYmPSYbnzJK2CR1cYQbyyt3LBWuNB+fiaP1TVSwss5Ib0acRN6J/uhC0q18y0BY7WK9+39AbKZcM6ykeKnWysda2hUx3UM9Yl/LYLT2vsjH9BKkzSzaPEizmdXug9IGX9E0eBxSqX+1iDVdHLkMf+LQQ4JB9AnnAUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bRx2Ew0E7rCBl8T8I68NAlalBlbNkH5qlG44vkTC7Po=; b=GXCTV2iQbPqRNPzjudUroUsl2xeGL3i4LQPih7U59UXHor4s50yAYXy+/iVlKWMveVwQmZaqQ53I+RzA1mexz8qMpdN/iWbFBjWvBnPXQU9sLaewzvwyjAgy1lGcR5nqASgwl99Blif8/9wgSctW7Ak9vw2YqXZwhSqkYMIf572NHKsr0XDM4p4ikyDi9xnJnYRvPVWKcre8lI5qaH0Xe6KeIQP112heLd2tXQeU5RLJthsRIquU9GcS/mM0hkRqbWy1iK8dIONwyGl2GOWlSCS5sJkWuHxgPNY5A2i8S3ag2JsUYcqfcLWCzAlOEYEii7tkxf1pP8lCf505HPiBYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bRx2Ew0E7rCBl8T8I68NAlalBlbNkH5qlG44vkTC7Po=; b=udBlTkr1hQUWQszST6tljF41tdGhZZ/aXaY72/EELIZ7eXvEJhidkK75TlDXQlF9awF35nG0C+E+Qbdw5Mw38qPW4Gn4krIlloJqtpSjm+Mdg4qWFhXhQesz1LXCpHVZFR6kRkVio4qpTyKV4thClpQ1olaUB73S0rJW7WkbM6s8zENbZKfyS21Kgxq3xQ+8ZnHrhU//7QOLmAJ9ZhmajwIa+Zfj/u4vA0vu2Xxe18AGucjlmTEvas9VQdb3EKUr4WjCy7JJOAsHWIBeDwAq6rAkw2JJta99mv4q//irybe2wGM7YIWDzpM8GpsAZwHzj/ymYlh0MRtLe0R15MoEwg== Received: from DM6NAM12FT058.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::46) by DM6NAM12HT256.eop-nam12.prod.protection.outlook.com (2a01:111:e400:fc64::103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.11; Tue, 13 Oct 2020 23:56:16 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:fc64::51) by DM6NAM12FT058.mail.protection.outlook.com (2a01:111:e400:fc64::461) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.11 via Frontend Transport; Tue, 13 Oct 2020 23:56:16 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::f9d1:ed5b:8625:bfb4%7]) with mapi id 15.20.3455.030; Tue, 13 Oct 2020 23:56:16 +0000 To: Matthew Brown , Roman Pronskiy CC: Internals Thread-Topic: [PHP-DEV] PHP 8 release announcement page on php.net Thread-Index: AQHWoG1TfFHy1hX+yUGXCh1lN38jS6mU65EAgAFFXuQ= Date: Tue, 13 Oct 2020 23:56:16 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:FDA04979EA694D7DD8A80CFBF2F1DAF710E4E54C57C2086D7B46C973E7117410;UpperCasedChecksum:4E060D1A5536F4AF67108581C1FC0DA1A419731A3ED6FA1668005C6C55508D70;SizeAsReceived:7199;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [U6UHu05JDP4F6LtbIF+1kAqCLto3reK5VgTi6cX33QLdOyaf+15PaP8Xi3OZ3qbm] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 2059fb62-1549-4574-c927-08d86fd392d7 x-ms-traffictypediagnostic: DM6NAM12HT256: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Kt1bw8cHz5QKaxIF7nHeVPzXhVYz7C9lkS5UDhfjwWGa+j2J1/2ujGeQ6Xd/HNSBmFlJnHQkJTeGpGbpguuRENUTRiRkWMLxnGuoY1BYYY2Rrnbdz+w+ip+fe456wj2WPf8Kdm9HzYaragTqDco0EWRLI+re1ugKEyGBPoxaGMOxkWOTaBIvOJkvsx3DuiqFdzmiQ7Y/T+yJDpFC+62Esj3kcmYF7FnUP9Ji6JJctqTV2t7NslwNniRmKer/7dbE x-ms-exchange-antispam-messagedata: CPp54AHLa1vh1KFCVJfBHElfjnW3y4VEKUUzkVmlB1xlaPz3o3MSeaBm1y3Ol4UCE2c2loCciJtVjjiytnf5yeRNPZJfFcQeZ0gUw0jNjyEtfZrnDCjjbF/Wm3M3RxuHbBrrdoVi3hAgUa8KukMEs+owHVW3+6JEPriRHjKiCFzqBzZYxGDGMATMAUHV+rnP6x5/eHY9Qfw09p2jUY3bPw== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: DM6NAM12FT058.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 2059fb62-1549-4574-c927-08d86fd392d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2020 23:56:16.4083 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM12HT256 Subject: Re: [PHP-DEV] PHP 8 release announcement page on php.net From: tysonandre775@hotmail.com (tyson andre) Hi internals,=0A= =0A= > As far as php.net can help with PHP's reputation, I think a brief homepag= e=0A= > intro that showcased some modern-looking PHP code would be great (e.g.=0A= > typescriptlang.org, golang.org). The docs design could also be=0A= > slightly tweaked to make everything seem newer, while still keeping the= =0A= > (very good) content basically the same.=0A= =0A= That reminds me of an idea I had a while ago:=0A= One of the features I've seen on many other programming=0A= languages' documentation and tutorials was the ability to run and edit the = example snippets.=0A= It may help in understanding the content of tutorials or example snippets f= or functions,=0A= - e.g. seeing what happens if code is rearranged=0A= or how PHP handles edge cases=0A= - It also allows new developers to try out php before deciding to install i= t.=0A= =0A= Right now, you can read the examples in https://www.php.net/manual/en/langu= age.variables.scope.php=0A= and copy them to run them locally, but you can't run them and see their out= put=0A= (as plain text or html, depending on context)=0A= =0A= Some examples in other languages:=0A= =0A= - MDN has JavaScript demos in the browser, e.g. =0A= https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_= Objects/Array/some=0A= - Rust has https://play.rust-lang.org/ (run on the server side)=0A= - golang has https://tour.golang.org/welcome/1 (run on the server side)=0A= =0A= There's two main options available for testing out php in a browser right n= ow:=0A= =0A= - A general sandboxed php implementation hosted by the owners of php.net=0A= (requires that it be secured and may lead to additional hosting costs),= =0A= https://3v4l.org/ (not open source https://3v4l.org/about - but similar t= o what I was thinking of)=0A= or https://psalm.dev/ (open source) are projects in that area=0A= (Matthew Brown is one of the authors of Psalm)=0A= - A WebAssembly solution, e.g. https://phan.github.io/demo/ (forked from ht= tps://oraoto.github.io/pib/)=0A= (I'm one of the maintainers of Phan)=0A= =0A= WebAssembly has some noticeable drawbacks such as requiring a modern browse= r,=0A= requiring a large download, and requiring more RAM than an ordinary website= .=0A= Many other websites for programming languages have moved to sandboxed imple= mentations=0A= hosted on an actual server.=0A= =0A= Thanks,=0A= - Tyson=