3v4l.org

run code in 500+ PHP versions simultaneously
<?php $params = [ 'locale' => 'en_US', 'sig' => '123456789', 'bah' => 'beh', 'foo' => 'barPA', ]; $payloadParams = [ 'foo' => 'barPL', 'locale' => 'de_CH', 'config' => ['bar1' => 'foo1', 'bar2' => 'foo2'] ]; //Reset $params to avoid inhection of unwanted values via parameters, only allow locale and sig $params = array_merge($payloadParams, array_filter(['locale'=>($params['locale'] ?? null), 'sig'=>($params['sig'] ?? null)])); print_r($params);
Output for git.master_jit, git.master
Array ( [foo] => barPL [locale] => en_US [config] => Array ( [bar1] => foo1 [bar2] => foo2 ) [sig] => 123456789 )

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:
46.18 ms | 709 KiB | 4 Q