3v4l.org

run code in 300+ PHP versions simultaneously
<?php $orderdata = array( array ( 'id' => 20992, 'key' => '_billing_parent_first_name', 'value' => 'Father First Name', ), array ( 'id' => 20993, 'key' => '_billing_parent_last_name', 'value' => 'Father Last Name', ), array ( 'id' => 20994, 'key' => '_billing_parent_email', 'value' => 'father@test.com', ) ); $postable = array(); foreach( $orderdata as $data ){ $postable[$data['key']] = $data['value']; } var_dump( $postable );
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["_billing_parent_first_name"]=> string(17) "Father First Name" ["_billing_parent_last_name"]=> string(16) "Father Last Name" ["_billing_parent_email"]=> string(15) "father@test.com" }

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:
27.81 ms | 406 KiB | 5 Q