3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'name' => array ( 0 => 'test1', 1 => 'test2' ), 'type' => array ( 0 => 'image/jpeg', 1 => 'image/jpeg' ), 'tmp_name' => array ( 0 => 'D:\xampp5\tmp\php5F43.tmp', 1 => 'D:\xampp5\tmp\php5F63.tmp' ), 'error' => array ( 0 => 0, 1 => 0 ), 'size' => array ( 0 => 49293, 1 => 20286 ) ); $result = array(); foreach (array_keys(current($array)) as $key) { $result[$key] = array_combine(array_keys($array), array_column($array, $key)); } print_r($result);

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.5.00.0130.00919.94
8.4.150.0020.00014.05
8.4.140.0150.00617.41
8.4.130.0060.00417.69
8.4.120.0130.00720.52
8.4.110.0120.00918.60
8.4.100.0120.00817.41
8.4.90.0140.00720.73
8.4.80.0050.00319.15
8.4.70.0090.00818.04
8.4.60.0120.01018.67
8.4.50.0120.00817.64
8.4.40.0170.00319.23
8.4.30.0130.00720.23
8.4.20.0000.01919.59
8.4.10.0090.00617.68
8.3.280.0110.00918.45
8.3.270.0130.00616.57
8.3.260.0080.00416.34
8.3.250.0140.00518.71
8.3.240.0110.00816.85
8.3.230.0110.00916.51
8.3.220.0050.00418.93
8.3.210.0110.00616.80
8.3.200.0050.00416.78
8.3.190.0100.00816.91
8.3.180.0130.00516.37
8.3.170.0060.01217.18
8.3.160.0030.00516.66
8.3.150.0160.00318.91
8.3.140.0060.00318.42
8.3.130.0060.00318.36
8.3.120.0040.00418.86
8.3.110.0000.00816.62
8.3.100.0070.00418.29
8.3.90.0110.00426.77
8.3.80.0030.00616.75
8.3.70.0040.01116.63
8.3.60.0110.00418.31
8.3.50.0100.00324.55
8.3.40.0140.00718.46
8.3.30.0070.00718.71
8.3.20.0080.00020.89
8.3.10.0000.00820.34
8.3.00.0060.00322.18
8.2.290.0100.00817.17
8.2.280.0050.00318.63
8.2.270.0030.01316.57
8.2.260.0070.00018.79
8.2.250.0000.01818.41
8.2.240.0000.01018.38
8.2.230.0050.00320.94
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0080.00016.75
8.2.190.0090.01216.58
8.2.180.0170.00316.48
8.2.170.0040.01122.96
8.2.160.0100.00322.08
8.2.150.0100.01024.18
8.2.140.0030.01024.66
8.2.130.0040.00426.16
8.2.120.0050.00320.86
8.2.110.0040.00420.99
8.2.100.0080.00417.82
8.2.90.0000.00818.03
8.2.80.0040.00419.31
8.2.70.0050.00317.93
8.2.60.0060.00318.22
8.2.50.0040.00418.10
8.2.40.0080.00019.38
8.2.30.0030.00619.31
8.2.20.0040.00418.19
8.2.10.0000.00719.05
8.2.00.0040.00419.34
8.1.330.0110.00915.94
8.1.320.0120.01016.18
8.1.310.0070.01016.43
8.1.300.0060.00920.17
8.1.290.0060.00318.88
8.1.280.0030.01325.92
8.1.270.0060.00322.13
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0000.00823.86
8.1.230.0060.00620.94
8.1.220.0040.00417.76
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.12
8.1.180.0080.00018.10
8.1.170.0040.00418.41
8.1.160.0000.00818.85
8.1.150.0000.00718.88
8.1.140.0070.00018.85
8.1.130.0030.00320.10
8.1.120.0030.00617.47
8.1.110.0000.00717.33
8.1.100.0080.00017.45
8.1.90.0030.00517.48
8.1.80.0040.00717.50
8.1.70.0030.00317.33
8.1.60.0000.00817.50
8.1.50.0040.00417.50
8.1.40.0080.00017.54
8.1.30.0050.00217.63
8.1.20.0000.00817.66
8.1.10.0070.00017.55
8.1.00.0040.00417.45
8.0.300.0040.00419.99
8.0.290.0000.00816.75
8.0.280.0070.00018.35
8.0.270.0060.00317.18
8.0.260.0030.00320.05
8.0.250.0000.00717.01
8.0.240.0040.00416.94
8.0.230.0000.00716.95
8.0.220.0000.00716.79
8.0.210.0050.00316.75
8.0.200.0000.00616.85
8.0.190.0070.00016.97
8.0.180.0000.00716.84
8.0.170.0030.00616.92
8.0.160.0040.00416.79
8.0.150.0030.00316.88
8.0.140.0040.00416.71
8.0.130.0000.00513.39
8.0.120.0040.00416.74
8.0.110.0000.00716.88
8.0.100.0040.00416.89
8.0.90.0090.00016.74
8.0.80.0060.01316.78
8.0.70.0040.00416.69
8.0.60.0000.00716.84
8.0.50.0000.00716.95
8.0.30.0100.01017.00
8.0.20.0120.00717.28
8.0.10.0060.00316.98
8.0.00.0130.00816.71
7.4.330.0050.00015.55
7.4.320.0050.00216.62
7.4.300.0030.00316.51
7.4.290.0070.00016.39
7.4.280.0040.00416.61
7.4.270.0030.00316.49
7.4.260.0030.00313.24
7.4.250.0080.00016.32
7.4.240.0020.00616.51
7.4.230.0030.00316.61
7.4.220.0020.00516.49
7.4.210.0040.00916.64
7.4.200.0070.00016.63
7.4.130.0100.00716.41
7.4.120.0030.01316.48
7.4.110.0060.01016.60
7.4.100.0110.00816.34
7.4.90.0080.00816.56
7.4.80.0100.00619.39
7.4.70.0110.00616.44
7.4.60.0120.00616.49
7.4.50.0100.00316.30
7.4.40.0100.00716.37
7.4.00.0030.01015.12
7.3.330.0000.00716.21
7.3.320.0050.00013.19
7.3.310.0040.00416.32
7.3.300.0030.00316.22
7.3.290.0090.00616.31
7.3.280.0030.01616.27
7.3.260.0120.00616.58
7.3.240.0120.00716.46
7.3.230.0100.01016.27
7.3.210.0120.00316.66
7.3.200.0060.01016.21
7.3.190.0130.00716.43
7.3.180.0090.00916.56
7.3.170.0040.01216.26
7.3.160.0120.00316.25
7.3.120.0030.01014.73
7.3.110.0100.00514.57
7.3.100.0090.00414.78
7.3.90.0030.01014.89
7.3.80.0060.00914.96
7.3.70.0070.01114.87
7.3.60.0090.00614.89
7.3.50.0060.00814.76
7.3.40.0050.00814.81
7.3.30.0000.01414.91
7.3.20.0070.00715.07
7.3.10.0080.00514.85
7.3.00.0090.00614.65
7.2.330.0070.01016.60
7.2.320.0110.00516.37
7.2.310.0140.00316.54
7.2.300.0180.00016.61
7.2.290.0150.01216.43
7.2.250.0100.00314.90
7.2.240.0150.00015.05
7.2.230.0130.00315.07
7.2.220.0110.00414.88
7.2.210.0080.00414.87
7.2.200.0060.00614.80
7.2.190.0090.00414.86
7.2.180.0100.00314.88
7.2.170.0070.00714.77
7.2.160.0100.00615.07
7.2.150.0070.00714.83
7.2.140.0000.01415.16
7.2.130.0000.01515.05
7.2.120.0080.00814.95
7.2.110.0140.00015.14
7.2.100.0140.00014.93
7.2.90.0050.00815.00
7.2.80.0000.01414.88
7.2.70.0030.01015.14
7.2.60.0100.00315.03
7.2.50.0070.00715.00
7.2.40.0030.01114.74
7.2.30.0070.00715.00
7.2.20.0100.00314.82
7.2.10.0060.00614.86
7.2.00.0080.00515.05
7.1.330.0100.00313.98
7.1.320.0030.01713.95
7.1.310.0070.00713.86
7.1.300.0180.00914.00
7.1.290.0100.00314.02
7.1.280.0150.00013.81
7.1.270.0090.00913.93
7.1.260.0070.00513.89
7.1.250.0100.00413.92

preferences:
31.02 ms | 403 KiB | 5 Q