3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = 'field_home_thumbs'; $flexifiledname = 'field_home_description'; $string_node = '$node->' . $name . '[0][value][' . $flexifiledname . '][0][value]'; echo "$string_node\n"; $string_node = '$node->' . $name . "[0]['value']['" . $flexifiledname . "'][0]['value']"; echo "$string_node\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$node->field_home_thumbs[0][value][field_home_description][0][value] $node->field_home_thumbs[0]['value']['field_home_description'][0]['value']