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']; $term_ids[]=$val['tid']; print_r($term_ids); ?>
Output for git.master, git.master_jit
Warning: Undefined variable $val in /in/HZLDR on line 11 Warning: Trying to access array offset on value of type null in /in/HZLDR on line 11 Array ( [0] => 1 [1] => 2 [2] => 3 [3] => )
Output for rfc.property-hooks
Warning: Undefined variable $val in /in/HZLDR on line 11 Warning: Trying to access array offset on null in /in/HZLDR on line 11 Array ( [0] => 1 [1] => 2 [2] => 3 [3] => )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.84 ms | 401 KiB | 8 Q