3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $my_wp_option = array( 'fruit' => array ( 'apple' => 4, 'banana' => 7, 'orange' => 2 ), 'vegetable' => array( 'carrot' => array( 'big' => 5, 'small' => 8 ), 'tomato' => array( 'big' => 2, 'small' => 5 ), 'potato' => array( 'big' => 1, 'small' => 7 ), 'brocolli' => array( 'big' => 3, 'small' => 6 ) ) ); # add_option = ('my_wp_option', $my_wp_option); # $my_array = get_option ('my_wp_option'); ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0