3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable_name = 'field_bundle_settings_my_type__my_field__name'; $name = str_replace('field_bundle_settings_', '', $row->name); $entity_type = substr($name, 0, strpos($name, '__')); $bundle = substr($name, strpos($name, '__') + 2); print $entity_type . "\n"; print $bundle;
based on tjRTm
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: row in /in/Wiorv on line 4 Notice: Trying to get property of non-object in /in/Wiorv on line 4
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: row in /in/Wiorv on line 4 Notice: Trying to get property of non-object in /in/Wiorv on line 4
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: row in /in/Wiorv on line 4