php 54 compatibility