Complex lib demo using PHP-CPP