Клонируем репозиторий
KPHP
В папке с репой делаем
make kphp
Не забываем поставить нужные библиотечки.
Смотрим
/kphp-kdb/objs/bin/kphp2cpp
Там можно увидеть
Запускаем:
./kphp2cpp ../test-kphp/index.php
Результат выполнения
File [kphp/index.src_index389dab75@u.h] changed
File [kphp/xmain.cpp] changed
File [kphp/init_scripts.cpp] changed
File [kphp/init_scripts.h] changed
File [kphp/index.src_index389dab75@u.cpp] changed
File [kphp/dfs0.index.src_index389dab75@u.h] changed
File [kphp/dfs0.index.src_index389dab75@u.cpp] changed
File [kphp/dfs1.index.src_index389dab75@u.h] changed
File [kphp/dfs1.index.src_index389dab75@u.cpp] changed
File [kphp/dfs2.index.src_index389dab75@u.h] changed
File [kphp/dfs2.index.src_index389dab75@u.cpp] changed
File [kphp/dfs3.index.src_index389dab75@u.h] changed
File [kphp/dfs3.index.src_index389dab75@u.cpp] changed
File [kphp/dfs4.index.src_index389dab75@u.h] changed
File [kphp/dfs4.index.src_index389dab75@u.cpp] changed
File [kphp/dfs5.index.src_index389dab75@u.h] changed
File [kphp/dfs5.index.src_index389dab75@u.cpp] changed
File [kphp/dfs6.index.src_index389dab75@u.h] changed
File [kphp/dfs6.index.src_index389dab75@u.cpp] changed
File [kphp/dfs7.index.src_index389dab75@u.h] changed
File [kphp/dfs7.index.src_index389dab75@u.cpp] changed
File [kphp/dfs8.index.src_index389dab75@u.h] changed
File [kphp/dfs8.index.src_index389dab75@u.cpp] changed
File [kphp/dfs9.index.src_index389dab75@u.h] changed
File [kphp/dfs9.index.src_index389dab75@u.cpp] changed
File [kphp/dfs10.index.src_index389dab75@u.h] changed
File [kphp/dfs10.index.src_index389dab75@u.cpp] changed
File [kphp/dfs11.index.src_index389dab75@u.h] changed
File [kphp/dfs11.index.src_index389dab75@u.cpp] changed
File [kphp/dfs12.index.src_index389dab75@u.h] changed
File [kphp/dfs12.index.src_index389dab75@u.cpp] changed
File [kphp/dfs13.index.src_index389dab75@u.h] changed
File [kphp/dfs13.index.src_index389dab75@u.cpp] changed
File [kphp/dfs14.index.src_index389dab75@u.h] changed
File [kphp/dfs14.index.src_index389dab75@u.cpp] changed
File [kphp/dfs15.index.src_index389dab75@u.h] changed
File [kphp/dfs15.index.src_index389dab75@u.cpp] changed
File [kphp/dfs16.index.src_index389dab75@u.h] changed
File [kphp/dfs16.index.src_index389dab75@u.cpp] changed
File [kphp/dfs17.index.src_index389dab75@u.h] changed
File [kphp/dfs17.index.src_index389dab75@u.cpp] changed
File [kphp/dfs18.index.src_index389dab75@u.h] changed
File [kphp/dfs18.index.src_index389dab75@u.cpp] changed
File [kphp/dfs19.index.src_index389dab75@u.h] changed
File [kphp/dfs19.index.src_index389dab75@u.cpp] changed
File [kphp/dfs20.index.src_index389dab75@u.h] changed
File [kphp/dfs20.index.src_index389dab75@u.cpp] changed
File [kphp/dfs21.index.src_index389dab75@u.h] changed
File [kphp/dfs21.index.src_index389dab75@u.cpp] changed
File [kphp/dfs22.index.src_index389dab75@u.h] changed
File [kphp/dfs22.index.src_index389dab75@u.cpp] changed
File [kphp/dfs23.index.src_index389dab75@u.h] changed
File [kphp/dfs23.index.src_index389dab75@u.cpp] changed
File [kphp/dfs24.index.src_index389dab75@u.h] changed
File [kphp/dfs24.index.src_index389dab75@u.cpp] changed
File [kphp/dfs25.index.src_index389dab75@u.h] changed
File [kphp/dfs25.index.src_index389dab75@u.cpp] changed
File [kphp/dfs26.index.src_index389dab75@u.h] changed
File [kphp/dfs26.index.src_index389dab75@u.cpp] changed
File [kphp/dfs27.index.src_index389dab75@u.h] changed
File [kphp/dfs27.index.src_index389dab75@u.cpp] changed
File [kphp/dfs28.index.src_index389dab75@u.h] changed
File [kphp/dfs28.index.src_index389dab75@u.cpp] changed
File [kphp/dfs29.index.src_index389dab75@u.h] changed
File [kphp/dfs29.index.src_index389dab75@u.cpp] changed
File [kphp/dfs30.index.src_index389dab75@u.h] changed
File [kphp/dfs30.index.src_index389dab75@u.cpp] changed
File [kphp/dfs31.index.src_index389dab75@u.h] changed
File [kphp/dfs31.index.src_index389dab75@u.cpp] changed
File [kphp/dfs.index.src_index389dab75@u.h] changed
File [kphp/dfs.index.src_index389dab75@u.cpp] changed
File [kphp/vars0.cpp] changed
File [kphp/vars.cpp] changed