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'; print_r($options);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [key] => Array ( [0] => testkey1 [1] => testkey2 [2] => testkey3 ) [value] => Array ( [0] => testvalue1 [1] => testvalue2 [2] => testvalue3 ) )