Are you comparing the julia and the php code in script mode?
Starting julia and compiling the code can take quite a bit of time.
If you really need the script mode, maybe this helps: [ANN] DaemonMode.jl: a package to run faster scripts in Julia
1 Like