3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.3.0 - 5.3.26, 5.4.0 - 5.4.17, 5.5.0
Parse error: syntax error, unexpected '}' in /in/U8vvc on line 13
Process exited with code 255.

preferences:
188.07 ms | 1395 KiB | 53 Q