3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mapper = [ 10014869 => "A", 10010380 => "B", 10112932 => "C", 10113908 => "D", 10115620 => "E", 10014876 => "F", 10017457 => "G", 10010397 => "H" ]; $array = [ 1 => 10014869, 2 => 10014869, 3 => 10010380, 4 => 10112932, 5 => 10112932, 6 => 10113908, 7 => 10115620, 8 => 10014876, 9 => 10017457, 10 => 10010397, ]; foreach($array as $key => $value) { $array[$key] = $mapper[$value]; } print_r($array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => A [2] => A [3] => B [4] => C [5] => C [6] => D [7] => E [8] => F [9] => G [10] => H )

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