if you want to get all dirty , #phel is also a #clojure/#janet like #lisp for php as target. Unfortunately has no network #repl so far https://phel-lang.org/
phel-lang.orgMy attempt on functional programming in PHP | The Phel LanguageThe official website of the Phel language. Phel is a functional programming language that compiles to PHP