Hello there.
The code is written in PHPoC, a programming language developed by us:
"PHPoC is a programming language developed based on widely-used PHP language, that makes it become not only a Web development language but also the general-purpose programming language for IoT. The syntax is almost the same as PHP, but adapted for the embedded system. PHPoC inherits almost core functions from PHP. Especially, PHPoC adds new functions, which are used to interact with hardware peripherals such as I/O, UART, I2C, SPI, ADC, TIMER/COUNTER, RTC and so on."

For more information, you can refer to this link: https://www.phpoc.com/what_is_phpoc.php
So, it probably won't work on a PHP Server. It needs to be uploaded to a PHPoC device to make it work.

Thank you