3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newdata = array ( 'wpseo_title' => 'test1', 'wpseo_desc' => 'test2', 'wpseo_metakey' => 'test3' ); $count=0; foreach ($newdata as $key => $newdat) { $count++; echo $newdat;echo $count; array_push($newdata, $count); } var_dump($newdata); // for recipe $md_array["recipe_type"][] = $newdata; //for cuisine $md_array["cuisine"][] = $newdata; array_push($md_array["cuisine"],$newdata); //var_dump($md_array["cuisine"]); ?>
Output for git.master, git.master_jit, rfc.property-hooks
test11test22test33array(6) { ["wpseo_title"]=> string(5) "test1" ["wpseo_desc"]=> string(5) "test2" ["wpseo_metakey"]=> string(5) "test3" [0]=> int(1) [1]=> int(2) [2]=> int(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:
106.23 ms | 401 KiB | 8 Q