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), ); 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.

preferences:
183.38 ms | 1395 KiB | 52 Q