3v4l.org

run code in 300+ PHP versions simultaneously
<?php function __($v) { return "__($v)"; } $array1 = ['dogs' => __('Dogs'), 'cats' => __('Cats')]; $array2 = [ 'ducks' => ['width' => 350, 'height' => 350, 'crop' => true], 'cows' => ['width' => 750, 'height' => 150, 'crop' => true], ]; array_push($array1, ...array_keys($array2)); print_r($array1);
Output for git.master, git.master_jit
Array ( [dogs] => __(Dogs) [cats] => __(Cats) [0] => ducks [1] => cows )

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:
43.02 ms | 852 KiB | 4 Q