PHP是否有像Java这样的虚拟机? [英] Does PHP have a virtual machine like Java?

查看:115
本文介绍了PHP是否有像Java这样的虚拟机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PHP是否有Java之类的虚拟机?

Does PHP have a virtual machine like Java?

推荐答案

是.

与运行PHP的平台无关,这些脚本被编译为相同的字节码,并由Zend Engine运行.

Independently from the platform PHP is running on, the scripts are compiled into the same bytecode and run by the Zend Engine.

与Java的区别在于,该编译后的代码通常不存储在单独的文件中,并且每次执行时都会重新编译脚本(但是,请参阅操作码缓存).

The difference from Java is that this compiled code is usually not stored into separate files and the scripts are re-compiled on each execution (however, see opcode caches).

这篇关于PHP是否有像Java这样的虚拟机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆