Php和PhantomJS

First I install phantomjs and after i need to work with highcharts-phantomjs. Everything work fine if i use phantomjs form linux terminal ( Ubuntu 16.04) example:

phatomjs lib\highcharts-convert.js -infile pathToInFile.json -outfile pathToOutFile.jpg

but problem start when i use phantom in PHP code like

exec('phatomjs lib\highcharts-convert.js -infile pathToInFile.json -outfile pathToOutFile.jpg')

before this i change work directory so that is not problem! If I execute this in PHP i get error

QXcbConnection: Could not connect to display

Then i try with some solution from internet first add this in command:

QT_QPA_PLATFORM="offscreen"

but this don't render label in higcharts in both case (terminal and php program)!

After that i install xcb and try with QT_QPA_PLATFORM="xcb" but got same error from beginning

At the end i instal xvfb and run command with

exec('xvfb-run phatomjs lib\highcharts-convert.js -infile pathToInFile.json -outfile pathToOutFile.jpg')

but this drastically increase time,so time to render picture is more then 3s!

Is there some solution for this?

I now find somewhere that phantom team fix that available in beta version phantom download! So someone can me help to first uninstall phantom or update, i didn't install with npm instead i use binary package following install tutorial