3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $entity_type = 'node'; var_dump(strtok($entity_type, '.')); $entity_type = 'views.view'; print_r(strtok($entity_type, '.'));
Output for 4.3.0 - 7.1.0
string(4) "node" views