3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $filters = []; $filters[] = [ 'field' => 'segmentGroupName', 'op' => 'inci', 'type' => 'value', 'value' => 'asd' ]; var_dump($filters); $filters2= [[ 'field' => 'segmentGroupName', 'op' => 'inci', 'type' => 'value', 'value' => 'asd' ]]; var_dump($filters2);
based on Z7Kug
Output for 5.6.0 - 7.3.0alpha1
array(1) { [0]=> array(4) { ["field"]=> string(16) "segmentGroupName" ["op"]=> string(4) "inci" ["type"]=> string(5) "value" ["value"]=> string(3) "asd" } } array(1) { [0]=> array(4) { ["field"]=> string(16) "segmentGroupName" ["op"]=> string(4) "inci" ["type"]=> string(5) "value" ["value"]=> string(3) "asd" } }