3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $term_ids_weirdstuff = array( 0 => array('tid' => 1), 1 => array('tid' => 2), 2 => array('tid' => 3), ); $term_ids=array(); foreach( $term_ids_weirdstuff as $dt)$term_ids[]=$dt['tid']; $dt[]=$dt['tid']; print_r($term_ids); ?>
Output for 4.3.0 - 7.2.0
Array ( [0] => 1 [1] => 2 [2] => 3 )