An over-engineered experiment by JoliCode
Turn π into :elephant: and back, with a whole PHP interpreter
compiled to WebAssembly, running in your browser. Because we could.
strtr()
Mostly. symfony/emoji
does the job with a good old strtr(). We shipped a whole PHP
interpreter to your browser to call it.
Nowhere. There is no server: PHP runs in this tab, and boots from scratch for every single conversion.
PHP and ICU, compiled to
WebAssembly with Emscripten. The intl extension is there because
symfony/emoji needs the \Transliterator class. Only the class:
the 30 MB of ICU data stayed home.
Yes, but symfony/emoji does not do it: names are ordinary words. We only replace whole words, and the longest name wins: βun chat noirβ becomes βun πββ¬β, but βun achatβ stays a purchase.