3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'mc_gross' => 10.17, 'protection_eligibility' => 'Eligible', 'address_status' => 'unconfirmed', 'payer_id' => 'STTAC7UV2CVJ4' ]; $result = []; foreach ($array as $key => $value) { $result[str_replace('_', '', ucwords($key, '_'))] = $value; } var_export($result);
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:
27.93 ms | 405 KiB | 5 Q