3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bitcodes = array( 'comp' => array( 'name' => 'Komponist', 'option' => 1 ), 'diri' => array( 'name' => 'Dirigent', 'option' => 2 ), 'orch' => array( 'name' => 'Orchestrator', 'option' => 4 ), 'prod' => array( 'name' => 'Produzent', 'option' => 8 ) ); foreach (array_values($bitcodes) as $values) { var_dump($values); }
Output for 4.3.0 - 7.1.0
array(2) { ["name"]=> string(9) "Komponist" ["option"]=> int(1) } array(2) { ["name"]=> string(8) "Dirigent" ["option"]=> int(2) } array(2) { ["name"]=> string(12) "Orchestrator" ["option"]=> int(4) } array(2) { ["name"]=> string(9) "Produzent" ["option"]=> int(8) }