3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = ["10100153", "2007", "350", "804082", "WW006", "WHT/NNY/OXGM", "35/38", "804082 WW00635/38", "0,00138857", "Champion 3pk Quarter Socks"]; $numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var_export( array_map(function($Value, $Number) { return compact(['Value', 'Number']); }, $values, $numbers) );
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => array ( 'Value' => '10100153', 'Number' => 1, ), 1 => array ( 'Value' => '2007', 'Number' => 2, ), 2 => array ( 'Value' => '350', 'Number' => 3, ), 3 => array ( 'Value' => '804082', 'Number' => 4, ), 4 => array ( 'Value' => 'WW006', 'Number' => 5, ), 5 => array ( 'Value' => 'WHT/NNY/OXGM', 'Number' => 6, ), 6 => array ( 'Value' => '35/38', 'Number' => 7, ), 7 => array ( 'Value' => '804082 WW00635/38', 'Number' => 8, ), 8 => array ( 'Value' => '0,00138857', 'Number' => 9, ), 9 => array ( 'Value' => 'Champion 3pk Quarter Socks', 'Number' => 10, ), )

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