3v4l.org

run code in 300+ PHP versions simultaneously
<?php $al = $al2 = [ 'users' => [ 0 => 'e401fe5f-643e-46e3-abac-cbe32ae38430', ], 'remote' => false, 'public' => false, ]; $v = [ '50fcf113-04de-49fc-9ed4-9e8a8d32b24f', '33fcf113-01cc-49fc-1cc1-9ed6e7d2b2cc', 7777 ]; $k = 'users'; $al[$k] = array_values($al[$k]) + $v; $al2[$k] += array_merge($al2[$k], $v); echo('Current:' . PHP_EOL . PHP_EOL); var_dump($al); echo(PHP_EOL . 'Before:' . PHP_EOL); var_dump($al2);
Output for git.master, git.master_jit, rfc.property-hooks
Current: array(3) { ["users"]=> array(3) { [0]=> string(36) "e401fe5f-643e-46e3-abac-cbe32ae38430" [1]=> string(36) "33fcf113-01cc-49fc-1cc1-9ed6e7d2b2cc" [2]=> int(7777) } ["remote"]=> bool(false) ["public"]=> bool(false) } Before: array(3) { ["users"]=> array(4) { [0]=> string(36) "e401fe5f-643e-46e3-abac-cbe32ae38430" [1]=> string(36) "50fcf113-04de-49fc-9ed4-9e8a8d32b24f" [2]=> string(36) "33fcf113-01cc-49fc-1cc1-9ed6e7d2b2cc" [3]=> int(7777) } ["remote"]=> bool(false) ["public"]=> bool(false) }

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:
41.08 ms | 407 KiB | 5 Q