3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mapped = array_map(function ($x) { return $x*$x; }, range(0, 10)); var_dump($mapped);
Output for git.master, git.master_jit, rfc.property-hooks
array(11) { [0]=> int(0) [1]=> int(1) [2]=> int(4) [3]=> int(9) [4]=> int(16) [5]=> int(25) [6]=> int(36) [7]=> int(49) [8]=> int(64) [9]=> int(81) [10]=> int(100) }

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:
40.4 ms | 401 KiB | 8 Q