Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8777955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:24:22+00:00 2026-06-13T19:24:22+00:00

Is there any way to let the cpu handle some operations in PHP (quite

  • 0

Is there any way to let the cpu handle some operations in PHP (quite like openCL) but is available in native php (without having PHP-openCL implemented)?

/E:

What i mean:

I am coding some php cli scripts

Everything you do in php (variables, etc.) will be cached in the ram. But you still can access the RAM directly (shmop – Link), which makes it way faster. (This is an example to access deep system resources, i just want to know if there are ways to access other deep system resources)

I want to acces the CPU directly for having speed up some operations by doing so. (in context of multithreading (pcntl_fork and running inside an endless while-loop in php cli script). Is there a way to skip the c-handler (dunno if this is the right expression).

OpenCL was just an example =)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:24:23+00:00Added an answer on June 13, 2026 at 7:24 pm

    shmop is not “accessing memory directly” (it’s sharing memory) and “bypassing the C layer” is not “accessing the CPU more directly”.

    The only thing that may remotely make sense is that you wish to code in ASM directly, instead of writing code in a higher level language which gets compiled down to machine code eventually. This is useful if you think you understand the CPU better than a C/PHP compiler and can write more efficient code for it (in your case, I’d have my doubts, to be honest). If so, you’ll have to write an external application in said low-level language and invoke it from PHP. In C and some other languages you could write inline-ASM, but PHP doesn’t support that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to let user pick color from screen ? Like the
Is there any way how to ensure some process will be always running? Let's
Is there any way to let Drools handle a String, Integer comparison without having
Is there any way to check step by step what's going on in let's
Is there any way to have a default MessageBox.Show() caption? Let says I would
Is there any way to get mouse position relative to it's parent element? Let's
Is there any way to make extension to pop up when event occurs? Let's
Is there any way to get PDF document text language? Example: Let's say I
Let's say I have 10 threads running simultaneously. Is there any way of calling
Let's imagine I have instantiated generic type by Activator.CreateInstance. Is there any way to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.