3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options['key'][] = 'testkey1'; $options['value'][] = 'testvalue1'; $options['key'][] = 'testkey2'; $options['value'][] = 'testvalue2'; $options['key'][] = 'testkey3'; $options['value'][] = 'testvalue3'; var_dump($options);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { ["key"]=> array(3) { [0]=> string(8) "testkey1" [1]=> string(8) "testkey2" [2]=> string(8) "testkey3" } ["value"]=> array(3) { [0]=> string(10) "testvalue1" [1]=> string(10) "testvalue2" [2]=> string(10) "testvalue3" } }