From 24607cd13b77ae2fd998b506b15f03ba98aa46ec Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 28 Mar 2025 12:07:19 +0900 Subject: update readme --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 128b6e3..e48997b 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,32 @@ Hello, World! The script, [hello.php](./hello.php), is executed on PHPHP on PHP. +### PHPHP on PHPHP on PHP + +Edit this line as the following: + +```diff + if (defined('PHPHP')) { +- if (PHPHP < 2) { ++ if (PHPHP < 3) { + echo "Running" . str_repeat(" on PHPHP", PHPHP) . " on PHP\n"; +``` + +Then, execute `index.php`. I recommend that you enable JIT. + +```bash +php -d opcache.enable_cli=on -d opcache.jit=on -d opcache.jit_buffer_size=1G index.php +``` + +It will execute hello world on PHPHP on PHPHP on PHP. + +``` +Running on PHP +Running on PHPHP on PHP +Running on PHPHP on PHPHP on PHP +Hello, World! +``` + ## Talks [Talk in PHPerKaigi 2025 (in Japanese)](https://fortee.jp/phperkaigi-2025/proposal/ef8480fc-1403-4020-9f24-aca9361f51e4) -- cgit v1.2.3-70-g09d2