发表于 2017-12-03 | | 阅读次数 mac安装12brew install v8brew install php71-v8js v8在php中的使用先查看v8是否正常安装:12345$ v8V8 version 5.1.281.47 [sample shell]> var a = 1;> a + 1> 2 php中应用实例: 12$v8 = new \V8Js();$v8->executeString('print("hello v8js!")');