3v4l.org

run code in 300+ PHP versions simultaneously
<?php $days = [ 1 => 'Sunday', 2 => 'Monday', 3 => 'Tuesday', 4 => 'Wednesday', 5 => 'Thursday', 6 => 'Friday', 7 => 'Saturday' ]; $array = [7,3,4]; $result = array_map(function ($a) use($days) { return $days[$a]; }, $array); echo "Day in name= ".implode(',', $result);
Output for git.master, git.master_jit, rfc.property-hooks
Day in name= Saturday,Tuesday,Wednesday

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