Avoid reflection for php >= 5.6.0

Not sure whether its worth to do, but it at least works, see http://3v4l.org/QoD0M