3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fruit = array(0 => "Lemon", 1 => "Apple"); $order = array(0 => "no1", 1 => "no2"); $new_array = array_combine($order, $fruit); print_r($new_array);

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.4.130.0110.00917.61
8.4.120.0100.00720.54
8.4.110.0120.00718.61
8.4.100.0120.00917.65
8.4.90.0090.01217.61
8.4.80.0130.00817.43
8.4.70.0080.01217.54
8.4.60.0140.00817.64
8.4.50.0060.00317.64
8.4.40.0040.00419.40
8.4.30.0130.00619.55
8.4.20.0130.00720.21
8.4.10.0060.01217.50
8.3.260.0110.00816.41
8.3.250.0110.00619.02
8.3.240.0130.00616.51
8.3.230.0090.00216.38
8.3.220.0100.00816.98
8.3.210.0040.00416.36
8.3.200.0110.00816.21
8.3.190.0120.00618.89
8.3.180.0120.00716.33
8.3.170.0050.00318.55
8.3.160.0060.01216.66
8.3.150.0090.01219.09
8.3.140.0040.00417.13
8.3.130.0030.00718.20
8.3.120.0150.00420.83
8.3.110.0060.00320.94
8.3.100.0040.00416.41
8.3.90.0090.00626.77
8.3.80.0060.00319.36
8.3.70.0100.01016.58
8.3.60.0090.00618.18
8.3.50.0140.00518.14
8.3.40.0120.00318.37
8.3.30.0100.00518.48
8.3.20.0050.00318.48
8.3.10.0000.00823.52
8.3.00.0000.00720.69
8.2.290.0100.00820.21
8.2.280.0070.00118.15
8.2.270.0060.01217.26
8.2.260.0030.00719.00
8.2.250.0040.00416.54
8.2.240.0030.00619.11
8.2.230.0070.00322.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0030.00618.88
8.2.190.0110.00418.02
8.2.180.0090.00616.50
8.2.170.0140.00722.96
8.2.160.0130.00019.34
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0080.00019.69
8.2.120.0040.00426.35
8.2.110.0090.00020.35
8.2.100.0030.00717.72
8.2.90.0000.00821.12
8.2.80.0040.00418.73
8.2.70.0050.00817.50
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0000.00718.16
8.2.30.0040.00417.98
8.2.20.0030.00517.88
8.2.10.0060.00618.06
8.2.00.0000.00917.64
8.1.330.0140.00516.57
8.1.320.0130.00516.25
8.1.310.0130.00616.63
8.1.300.0040.00418.00
8.1.290.0080.00030.84
8.1.280.0060.00925.92
8.1.270.0080.00018.78
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00320.99
8.1.230.0030.00719.05
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00718.82
8.1.150.0000.00718.73
8.1.140.0000.00722.04
8.1.130.0020.00520.02
8.1.120.0030.00317.29
8.1.110.0060.00317.43
8.1.100.0000.00717.37
8.1.90.0030.00317.37
8.1.80.0030.00617.39
8.1.70.0040.00417.32
8.1.60.0040.00417.53
8.1.50.0030.00617.39
8.1.40.0000.00817.38
8.1.30.0000.00717.49
8.1.20.0070.00017.55
8.1.10.0040.00417.31
8.1.00.0000.00717.36
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00618.24
8.0.270.0030.00317.09
8.0.260.0060.00020.07
8.0.250.0000.01016.84
8.0.240.0040.00416.89
8.0.230.0030.00316.91
8.0.220.0090.00016.79
8.0.210.0030.00316.82
8.0.200.0030.00316.85
8.0.190.0040.00416.93
8.0.180.0000.00816.87
8.0.170.0040.00416.83
8.0.160.0000.00816.70
8.0.150.0070.00016.84
8.0.140.0050.00216.68
8.0.130.0000.00713.32
8.0.120.0070.00016.83
8.0.110.0040.00416.84
8.0.100.0040.00416.76
8.0.90.0050.00316.61
8.0.80.0100.00816.76
8.0.70.0040.00416.61
8.0.60.0000.00716.83
8.0.50.0000.00716.68
8.0.30.0100.00917.06
8.0.20.0090.01117.40
8.0.10.0020.00516.89
8.0.00.0120.00916.83
7.4.330.0000.00515.55
7.4.320.0000.00716.36
7.4.300.0070.00016.51
7.4.290.0030.00316.50
7.4.280.0060.00316.32
7.4.270.0030.00316.53
7.4.260.0060.00316.55
7.4.250.0070.00016.53
7.4.240.0070.00016.57
7.4.230.0040.00416.37
7.4.220.0000.00816.32
7.4.210.0060.01016.48
7.4.200.0000.00716.39
7.4.160.0070.01016.34
7.4.140.0110.00817.86
7.4.130.0110.00616.33
7.4.120.0110.01016.39
7.4.110.0090.01616.40
7.4.100.0120.00616.48
7.4.90.0110.00716.19
7.4.80.0130.00319.39
7.4.70.0090.00816.28
7.4.60.0120.00316.41
7.4.50.0090.00316.45
7.4.40.0090.00616.36
7.4.10.0070.01015.00
7.4.00.0030.01314.84
7.3.330.0000.00513.02
7.3.320.0030.00312.97
7.3.310.0070.00016.29
7.3.300.0030.00316.02
7.3.290.0000.00616.15
7.3.280.0110.00816.12
7.3.260.0080.01016.29
7.3.240.0130.00616.12
7.3.230.0130.00616.25
7.3.210.0070.01015.98
7.3.200.0060.01616.36
7.3.190.0140.00916.07
7.3.180.0070.01016.03
7.3.170.0030.01416.09
7.3.160.0140.00416.29
7.3.130.0100.01014.41
7.3.120.0070.01114.73
7.3.110.0120.00614.57
7.3.100.0070.00414.83
7.3.90.0030.01014.61
7.3.80.0100.00314.79
7.3.70.0040.00714.72
7.3.60.0030.00914.54
7.3.50.0040.01114.69
7.3.40.0000.01114.61
7.3.30.0030.00914.74
7.3.20.0130.00316.57
7.3.10.0000.01316.41
7.3.00.0040.00416.43
7.2.330.0070.01116.33
7.2.320.0110.01116.66
7.2.310.0100.00616.50
7.2.300.0150.00416.39
7.2.290.0030.01316.61
7.2.260.0060.01314.89
7.2.250.0040.00814.77
7.2.240.0090.00614.82
7.2.230.0110.00414.88
7.2.220.0070.00314.75
7.2.210.0030.01014.86
7.2.200.0040.01114.73
7.2.190.0040.01114.88
7.2.180.0120.00314.84
7.2.170.0040.01115.00
7.2.160.0040.00715.01
7.2.150.0030.00616.73
7.2.140.0070.00716.77
7.2.130.0080.00816.71
7.2.120.0040.01516.75
7.2.110.0840.00515.73
7.2.100.0550.00615.65
7.2.90.0590.00715.63
7.2.80.0870.00415.78
7.2.70.0670.00515.93
7.2.60.0730.00515.70
7.2.50.0610.00515.75
7.2.40.0600.00715.97
7.2.30.0620.01215.84
7.2.20.0490.00615.79
7.2.10.0950.00715.95
7.2.00.0540.00615.72
7.1.330.0030.01015.42
7.1.320.0030.00715.63
7.1.310.0040.00815.60
7.1.300.0030.01015.64
7.1.290.0100.00315.80
7.1.280.0000.01115.76
7.1.270.0110.00315.76
7.1.260.0000.01515.49
7.1.250.0000.01015.78
7.1.240.0040.01115.96
7.1.230.0760.00814.73
7.1.220.0590.00614.68
7.1.210.0660.00514.81
7.1.200.0620.00714.68
7.1.190.0640.00514.75
7.1.180.0630.00514.82
7.1.170.0710.00614.86
7.1.160.0620.00514.70
7.1.150.1040.00514.90
7.1.140.0540.00514.69
7.1.130.0750.00714.67
7.1.120.0640.00614.76
7.1.110.0600.00814.84
7.1.100.0760.00714.81
7.1.90.0780.00714.61
7.1.80.0690.00714.78
7.1.70.0620.00814.79
7.1.60.0770.00523.86
7.1.50.0760.00923.69
7.1.40.0840.00723.59
7.1.30.0730.00723.83
7.1.20.0860.01123.62
7.1.10.0750.00514.88
7.1.00.0710.00714.84
7.0.330.0030.00715.33
7.0.320.0090.00315.36
7.0.310.0030.01015.34
7.0.300.0060.00915.46
7.0.290.0060.00615.30
7.0.280.0000.01315.40
7.0.270.0040.00715.51
7.0.260.0070.00715.31
7.0.250.0030.01015.39
7.0.240.0070.00715.34
7.0.230.0000.01415.39
7.0.220.0060.00615.36
7.0.210.0030.00515.43
7.0.200.0000.00815.36
7.0.190.0060.00915.46
7.0.180.0040.01215.26
7.0.170.0070.01015.39
7.0.160.0000.00815.38
7.0.150.0040.00715.18
7.0.140.0030.00915.54
7.0.130.0070.00715.25
7.0.120.0080.00615.28
7.0.110.0030.01015.45
7.0.100.0040.00415.47
7.0.90.0000.01515.30
7.0.80.0090.00615.23
7.0.70.0080.00815.27
7.0.60.0050.00315.43
7.0.50.0030.00915.48
7.0.40.0040.00413.42
7.0.30.0070.01013.49
7.0.20.0000.00813.53
7.0.10.0030.01413.23
7.0.00.0040.00713.47
5.6.400.0030.00614.17
5.6.390.0030.00913.98
5.6.380.0060.00714.14
5.6.370.0060.00614.39
5.6.360.0030.01314.39
5.6.350.0030.01714.43
5.6.340.0030.01014.07
5.6.330.0030.00714.13
5.6.320.0090.00614.19
5.6.310.0030.01013.86
5.6.300.0030.00614.05
5.6.290.0140.00014.10
5.6.280.0110.00414.34
5.6.270.0070.01014.36
5.6.260.0000.01114.59
5.6.250.0070.00314.29
5.6.240.0030.01314.44
5.6.230.0120.00614.35
5.6.220.0090.00914.41
5.6.210.0030.00614.33
5.6.200.0030.00914.26
5.6.190.0030.01014.14
5.6.180.0040.01514.13
5.6.170.0040.00814.00
5.6.160.0140.00313.83
5.6.150.0030.00714.27
5.6.140.0030.00514.15
5.6.130.0130.00014.16
5.6.120.0090.00614.18
5.6.110.0030.01014.42
5.6.100.0080.00514.16
5.6.90.0030.00914.18
5.6.80.0090.00314.06
5.6.70.0110.00414.25
5.6.60.0080.00014.31
5.6.50.0060.00614.17
5.6.40.0040.01114.22
5.6.30.0000.01114.08
5.6.20.0030.00913.92
5.6.10.0060.00613.93
5.6.00.0050.00514.20

preferences:
32.45 ms | 403 KiB | 5 Q