3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'mc_gross' => 10.17, 'protection_eligibility' => 'Eligible', 'address_status' => 'unconfirmed', 'payer_id' => 'STTAC7UV2CVJ4' ]; var_export( array_reduce( array_keys($array), fn($result, $k) => $result + [str_replace('_', '', ucwords($k, '_')) => $array[$k]], [] ) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 'McGross' => 10.17, 'ProtectionEligibility' => 'Eligible', 'AddressStatus' => 'unconfirmed', 'PayerId' => 'STTAC7UV2CVJ4', )

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