3 ms·
Built-in functions are certainly a pain. They pose a similar problem for Ruby (which there is a Truffle implementation of). I think the best way around is to re
by chrisseaton 10y ago
Built-in functions are certainly a pain. They pose a similar problem for Ruby (which there is a Truffle implementation of). I think the best way around is to rewrite them in PHP, but it may not be tractable to do this with the same semantics. Another option is to run the C code that implements the builtins using the same JIT as you use for the PHP code. Then you can inline through the builtins, which is one reason why HHVM may be slow.