Fixed support for php 5.4 and 5.5

Constant expressions were not introduced until 5.6