PHP Api behaviour