change requires to php 5.4+