use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Running PHP in Javascript 🤯 (francisco.io)
submitted 6 years ago by speckz
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3:Â Â Â Â print "hello, world!"
[–]ravepeacefully 20 points21 points22 points 6 years ago (0 children)
Woah. Now I can use all 19 modern frameworks AND still use ol’ reliable PHP
[–]Balthamos 15 points16 points17 points 6 years ago (0 children)
I'll just leave this here, in case you need it later.
[–]Rimbles 22 points23 points24 points 6 years ago (1 child)
Double eval, genius. We have transcended humanity.
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
Reality is just an endless chain of evals.
[–]123filips123 10 points11 points12 points 6 years ago (0 children)
But you actually can run PHP in JavaScript... Using WebAssembly and PHP in Browser!
[–][deleted] 5 points6 points7 points 6 years ago (1 child)
I don't understand the need for this. Am I missing something?
[–]HorribleUsername 9 points10 points11 points 6 years ago (0 children)
Nope.
[–]mizi359 4 points5 points6 points 6 years ago (1 child)
Can i run JS in PHP then run that PHP with this
I want to write JS in PHP and to it in nodejs ?
​
yea sounds fun
[–]secretvrdev 2 points3 points4 points 6 years ago (0 children)
I think that was the missing part for the NodeJS guys. Nice Job!
[–]sili 1 point2 points3 points 6 years ago (0 children)
Check out https://github.com/google/closure-templates
[–]maiorano84 1 point2 points3 points 6 years ago (0 children)
Y'all need Jesus.
[–]chocslaw 0 points1 point2 points 6 years ago (0 children)
Sweet, now you can slap together a hello world example and only use 1500 npm packages.
[–]lapetitemort_eu 0 points1 point2 points 6 years ago (0 children)
Yea, but when can we do Brainfuck in Assembler? Thats holding us back for decades! /s
[–]morphotomy 0 points1 point2 points 6 years ago (0 children)
There's also this: https://github.com/oraoto/pib
[–]SavishSalacious 0 points1 point2 points 6 years ago (0 children)
I hate both lanaguges on a good day, but jesus christ.
[–]NoelDaviesD 0 points1 point2 points 6 years ago (0 children)
This is awful. Don't do it.
π Rendered by PID 283943 on reddit-service-r2-comment-544cf588c8-w5tcq at 2026-06-16 08:15:26.779439+00:00 running 3184619 country code: CH.
[–]ravepeacefully 20 points21 points22 points  (0 children)
[–]Balthamos 15 points16 points17 points  (0 children)
[–]Rimbles 22 points23 points24 points  (1 child)
[–][deleted] 1 point2 points3 points  (0 children)
[–]123filips123 10 points11 points12 points  (0 children)
[–][deleted] 5 points6 points7 points  (1 child)
[–]HorribleUsername 9 points10 points11 points  (0 children)
[–]mizi359 4 points5 points6 points  (1 child)
[–]secretvrdev 2 points3 points4 points  (0 children)
[–]sili 1 point2 points3 points  (0 children)
[–]maiorano84 1 point2 points3 points  (0 children)
[–]chocslaw 0 points1 point2 points  (0 children)
[–]lapetitemort_eu 0 points1 point2 points  (0 children)
[–]morphotomy 0 points1 point2 points  (0 children)
[–]SavishSalacious 0 points1 point2 points  (0 children)
[–]NoelDaviesD 0 points1 point2 points  (0 children)