3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 'name' => ['a', 'b', 'c'], 'age' => [ 2 , 1 , 3 , 4 ], 'shoe' => [11 , 9 ], 'kids' => [ 1 , 0 , 2 ] ]; $keys = array_keys($arr); $transposed = array_map(null, ...array_values($arr)); foreach ($transposed as &$subarray) { $subarray = array_combine($keys, $subarray); } var_export($transposed);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00418.43
8.3.50.0100.00716.20
8.3.40.0080.00818.29
8.3.30.0140.00018.49
8.3.20.0080.00020.73
8.3.10.0040.00421.93
8.3.00.0040.00421.81
8.2.180.0070.01016.61
8.2.170.0120.00322.96
8.2.160.0000.01521.99
8.2.150.0040.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00026.16
8.2.110.0030.00622.30
8.2.100.0030.00918.28
8.2.90.0030.00617.75
8.2.80.0000.00818.79
8.2.70.0030.00718.03
8.2.60.0050.00318.22
8.2.50.0060.00319.24
8.2.40.0050.00320.85
8.2.30.0000.00719.37
8.2.20.0000.00817.94
8.2.10.0070.00019.27
8.2.00.0040.00419.19
8.1.280.0140.00725.92
8.1.270.0040.00420.35
8.1.260.0000.00726.35
8.1.250.0030.00528.09
8.1.240.0030.00620.64
8.1.230.0080.00320.94
8.1.220.0080.00017.76
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00819.04
8.1.170.0000.00918.56
8.1.160.0000.00819.00
8.1.150.0040.00418.93
8.1.140.0040.00422.49
8.1.130.0000.00720.15
8.1.120.0080.00017.36
8.1.110.0000.00717.38
8.1.100.0050.00317.45
8.1.90.0040.00417.46
8.1.80.0030.00617.51
8.1.70.0000.00717.35
8.1.60.0000.00817.48
8.1.50.0040.00417.49
8.1.40.0040.00417.53
8.1.30.0000.00717.52
8.1.20.0000.00817.63
8.1.10.0050.00317.45
8.1.00.0030.00917.38
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0070.00018.46
8.0.270.0040.00416.83
8.0.260.0000.00718.50
8.0.250.0000.00816.86
8.0.240.0000.00716.95
8.0.230.0000.00716.92
8.0.220.0000.00816.79
8.0.210.0070.00016.91
8.0.200.0040.00416.94
8.0.190.0070.00016.92
8.0.180.0000.00816.94
8.0.170.0000.00816.91
8.0.160.0000.00716.86
8.0.150.0000.00716.81
8.0.140.0070.00416.75
8.0.130.0030.00313.41
8.0.120.0040.00416.76
8.0.110.0040.00416.89
8.0.100.0030.00616.96
8.0.90.0020.00616.81
8.0.80.0060.00916.88
8.0.70.0050.00216.87
8.0.60.0030.00516.78
8.0.50.0050.00216.83
8.0.30.0090.00316.87
8.0.20.0080.00516.89
8.0.10.0050.00217.05
8.0.00.0060.01017.20
7.4.330.0000.00516.79
7.4.320.0000.00616.63
7.4.300.0000.00816.52
7.4.290.0050.00216.48
7.4.280.0040.00416.51
7.4.270.0020.00516.52
7.4.260.0030.00313.39
7.4.250.0040.00416.52
7.4.240.0070.00016.52
7.4.230.0070.00016.49
7.4.220.0030.00416.42
7.4.210.0080.00716.55
7.4.200.0040.00416.27
7.4.190.0070.00016.64
7.4.180.0070.00016.45
7.4.160.0070.00016.67
7.4.150.0000.00716.29
7.4.140.0060.00817.25
7.4.130.0100.00616.88
7.4.120.0090.00716.93
7.4.110.0110.00716.88
7.4.100.0060.00916.97
7.4.90.0080.00916.90
7.4.80.0090.00817.89
7.4.70.0060.00916.90
7.4.60.0080.00616.98
7.4.50.0100.00716.88
7.4.40.0090.00816.94
7.4.30.0110.00417.03
7.4.20.0090.00417.04
7.4.10.0090.00716.90
7.4.00.0050.00816.84
7.3.330.0060.00316.23
7.3.320.0030.00313.13
7.3.310.0070.00016.06
7.3.300.0000.00716.30
7.3.290.0080.00516.30
7.3.280.0060.00616.21
7.3.270.0080.00016.29
7.3.260.0110.00716.96
7.3.250.0140.00317.06
7.3.240.0100.00616.56
7.3.230.0090.00716.84
7.3.220.0110.00517.00
7.3.210.0110.00716.79
7.3.200.0110.00516.80
7.3.190.0100.00516.77
7.3.180.0120.00516.79
7.3.170.0080.00916.79
7.3.160.0070.01016.83
7.3.150.0030.01117.04
7.3.140.0060.00716.95
7.3.130.0060.00916.73
7.3.120.0090.00616.75
7.3.110.0090.00516.67
7.3.100.0110.00516.63
7.3.90.0060.00816.94
7.3.80.0110.00516.76
7.3.70.0080.00816.71
7.3.60.0110.00716.81
7.3.50.0140.00616.76
7.3.40.0100.00816.83
7.3.30.0100.01016.78
7.3.20.0100.00617.42
7.3.10.0060.01017.35
7.3.00.0050.01117.41
7.2.340.0130.00317.13
7.2.330.0140.00716.90
7.2.320.0110.00816.93
7.2.310.0160.00416.95
7.2.300.0140.00616.89
7.2.290.0150.00616.88
7.2.280.0130.00617.13
7.2.270.0140.00717.04
7.2.260.0130.00616.90
7.2.250.0120.00816.93
7.2.240.0120.00616.95
7.2.230.0120.00816.91
7.2.220.0100.00816.85
7.2.210.0120.00616.85
7.2.200.0150.00416.99
7.2.190.0130.00616.99
7.2.180.0090.01116.91
7.2.170.0150.00716.96
7.2.160.0160.00316.96
7.2.150.0120.00717.48
7.2.140.0160.00317.64
7.2.130.0140.00717.62
7.2.120.0120.00617.64
7.2.110.0160.00317.59
7.2.100.0120.00717.58
7.2.90.0210.00417.64
7.2.80.0140.00517.62
7.2.70.0110.00717.54
7.2.60.0130.00817.56
7.2.50.0090.01017.56
7.2.40.0140.00617.62
7.2.30.0140.00817.67
7.2.20.0140.00617.61
7.2.10.0430.00417.55
7.2.00.0120.00717.60

preferences:
61.87 ms | 400 KiB | 5 Q