PHP compatibility