3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $term_ids_weirdstuff = array( 0 => array('tid' => 1), 1 => array('tid' => 2), 2 => array('tid' => 3), ); function collapse_termids($weirdstuff) { $output = array(); function fetch_tid($value, $key) { if ($key === 'tid') { $output[] = $value; } array_walk_recursive($weirdstuff, 'fetch_tid'); return $output; } $term_ids = collapse_termids($term_ids_weirdstuff);
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected end of file in /in/GEEgb on line 25
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected $end in /in/GEEgb on line 25
Process exited with code 255.