3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface MongoEntityInterface { public function getIdField(); } class UserEntity implements MongoEntityInterface { public function getIdField() { return 'userId'; } }
Output for 5.6.36 - 7.3.0rc3