3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["_wpcf7" => 3, "_wpcf7_version" => "4.9.2", "_wpcf7_locale" => "en_US", "_wpcf7_unit_tag" => "wpcf7-f3-p2-o1", "_wpcf7_container_post" => 2, "your-name" => "sad", "your-subject" => "sad", "your-message" => "sdsa"]; $keys = array_keys($arr); $count = count($keys)-1; $namearr=[]; for($i = $count; $i >$count-3;$i-- ){ $namearr[$keys[$i]] = $arr[$keys[$i]]; } var_dump($namearr);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["your-message"]=> string(4) "sdsa" ["your-subject"]=> string(3) "sad" ["your-name"]=> string(3) "sad" }

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:
84.6 ms | 405 KiB | 5 Q