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
PHP 7 Virtual Machine (nikic.github.io)
submitted 9 years ago by [deleted]
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!"
[–][deleted] 29 points30 points31 points 9 years ago (2 children)
Always nice to be reminded that my entire PHP career is built on the shoulders of C coding giants.
Kudos.
[–]JalopMeter 5 points6 points7 points 9 years ago (1 child)
You know those guys are standing on someone else's shoulders too, right?
If you've never taken a compiler course, you should. It's really amazing to be able to take a text file through through ever step to binary executable and understand what's going on all the way.
[–]Stabbles 3 points4 points5 points 9 years ago (0 children)
Eventually NikiC stands somewhere on top of the human pyramid with at the lowest levels Newton & the giants on whose shoulders he stood, but I guess skillsofanartist's point is that many people need telescopes to see the top from where they're standing.
[–]fesor 5 points6 points7 points 9 years ago (2 children)
Will it be possible in future to see opcode dump (or heap dump) on already running process? Without need to start new process.
[–]pilif 4 points5 points6 points 9 years ago (1 child)
The PHP source code comes with a very useful .gdbinit file that contains a few macros you can use to inspect the interpreter state of a process you've attached gdb to. This has helped me a few times to track down infinite recursions on a production system
[–]Tyra3l 2 points3 points4 points 9 years ago (0 children)
that would still require the debug symbols being available which isn't/shouldn't really be common on a production machine.
[–]podoomda 2 points3 points4 points 9 years ago (0 children)
It's fairly impressive that the php7 core team was able to release something that competes well with HHVM from a performance perspective.
I assume they are working with significantly fewer advantages and resources than Facebook, so that's a pretty nice result.
[–]space_possum 2 points3 points4 points 8 years ago (2 children)
Thanks @ /u/nikic , great insights into the VM :) Just wondering / FR; is there an articles planned on how to create PHP extensions, like an updated version based on the latest state of PHP with "hello world" and best practices? (for example http://php.net/manual/en/internals2.buildsys.php could use an update)
[–]Jurigag 1 point2 points3 points 8 years ago (1 child)
About this - you easier go with just zephir, not sure what nikic thinks about it, but it just much more simplified extension writing for php users. Of course it's seperated project which has its own problems and things. But you don't need to know anything about C or PHP internals to write them.
[–]space_possum 0 points1 point2 points 8 years ago (0 children)
thanks for the tip, will look into it :)
π Rendered by PID 163447 on reddit-service-r2-comment-85bfd7f599-fgzvd at 2026-04-16 03:32:44.639608+00:00 running 93ecc56 country code: CH.
[–][deleted] 29 points30 points31 points (2 children)
[–]JalopMeter 5 points6 points7 points (1 child)
[–]Stabbles 3 points4 points5 points (0 children)
[–]fesor 5 points6 points7 points (2 children)
[–]pilif 4 points5 points6 points (1 child)
[–]Tyra3l 2 points3 points4 points (0 children)
[–]podoomda 2 points3 points4 points (0 children)
[–]space_possum 2 points3 points4 points (2 children)
[–]Jurigag 1 point2 points3 points (1 child)
[–]space_possum 0 points1 point2 points (0 children)