3v4l.org

run code in 300+ PHP versions simultaneously
<?php $newdata = array ( 'wpseo_title' => 'test1', 'wpseo_desc' => 'test2', 'wpseo_metakey' => 'test3' ); $count=0; $count2=100; foreach ($newdata as $key => $newdat) { $count++; $count100++; echo $newdat;echo $count; array_push($newdata, $count, $count100); } 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
Warning: Undefined variable $count100 in /in/u4h9T on line 11 test11test22test33array(9) { ["wpseo_title"]=> string(5) "test1" ["wpseo_desc"]=> string(5) "test2" ["wpseo_metakey"]=> string(5) "test3" [0]=> int(1) [1]=> int(1) [2]=> int(2) [3]=> int(2) [4]=> int(3) [5]=> 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:
56.41 ms | 402 KiB | 8 Q