<?php fix + added demo