3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [2.2, 1.1, 3.9]; $b = ["B", "C", "F"]; $new = []; foreach ($a as $index => $value) { $new[] = [ $b[$index], $value ]; } print_r($new);

preferences:
59.97 ms | 1314 KiB | 5 Q