3v4l.org

run code in 300+ PHP versions simultaneously
<?php $customer['address'] = '123 fake st'; $customer['name'] = 'Tim'; $customer['dob'] = '12/08/1986'; $customer['dontSortMe'] = 'this value doesnt need to be sorted'; $properOrderedArray = array_merge(array_flip(array('name', 'dob', 'address')), $customer); var_dump($properOrderedArray);

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.0170.00318.18
8.3.50.0080.01221.15
8.3.40.0120.00318.83
8.3.30.0100.00720.34
8.3.20.0070.00020.21
8.3.10.0040.00422.13
8.3.00.0040.00422.37
8.2.180.0070.01316.75
8.2.170.0030.01122.96
8.2.160.0100.01022.25
8.2.150.0070.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.56
8.2.110.0040.00422.25
8.2.100.0090.00317.91
8.2.90.0080.00019.23
8.2.80.0040.00419.41
8.2.70.0070.00417.50
8.2.60.0080.00017.90
8.2.50.0000.00818.07
8.2.40.0030.00818.06
8.2.30.0050.00219.59
8.2.20.0000.00717.65
8.2.10.0030.00617.68
8.2.00.0030.00517.75
8.1.280.0150.00325.92
8.1.270.0040.00423.99
8.1.260.0170.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.38
8.1.230.0110.00020.98
8.1.220.0060.00318.77
8.1.210.0050.00318.82
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0090.00018.46
8.1.160.0040.00418.84
8.1.150.0000.00718.54
8.1.140.0030.00517.27
8.1.130.0030.00317.88
8.1.120.0040.00417.36
8.1.110.0050.00217.32
8.1.100.0000.00817.45
8.1.90.0000.00817.33
8.1.80.0040.00417.41
8.1.70.0000.00717.38
8.1.60.0030.00617.57
8.1.50.0000.00717.39
8.1.40.0050.00317.36
8.1.30.0040.00417.50
8.1.20.0030.00617.61
8.1.10.0040.00417.43
8.1.00.0040.00417.46
8.0.300.0080.00319.88
8.0.290.0000.00717.04
8.0.280.0030.00318.39
8.0.270.0020.00517.11
8.0.260.0030.00316.77
8.0.250.0020.00516.77
8.0.240.0100.00116.88
8.0.230.0000.00716.95
8.0.220.0000.00716.83
8.0.210.0000.00816.73
8.0.200.0030.00316.89
8.0.190.0080.00016.79
8.0.180.0040.00416.83
8.0.170.0040.00416.78
8.0.160.0040.00416.73
8.0.150.0000.00716.74
8.0.140.0040.00416.84
8.0.130.0050.00013.22
8.0.120.0040.00416.84
8.0.110.0040.00416.66
8.0.100.0050.00216.72
8.0.90.0000.00816.88
8.0.80.0150.00016.84
8.0.70.0080.00016.78
8.0.60.0040.00416.95
8.0.50.0080.00016.63
8.0.30.0130.01117.11
8.0.20.0080.01317.40
8.0.10.0000.00716.86
8.0.00.0130.00616.73
7.4.330.0020.00215.00
7.4.320.0030.00616.60
7.4.300.0030.00316.52
7.4.290.0070.00016.45
7.4.280.0030.00316.45
7.4.270.0000.00916.54
7.4.260.0000.00513.23
7.4.250.0000.00716.46
7.4.240.0040.00316.47
7.4.230.0040.00416.56
7.4.220.0090.00916.48
7.4.210.0070.00916.48
7.4.200.0030.00316.35
7.4.190.0070.00016.50
7.4.160.0030.01316.46
7.4.150.0090.00817.40
7.4.140.0130.00717.86
7.4.130.0080.00916.49
7.4.120.0140.00616.47
7.4.110.0090.00916.34
7.4.100.0110.00616.50
7.4.90.0030.02016.33
7.4.80.0060.01119.39
7.4.70.0060.01216.54
7.4.60.0090.00916.43
7.4.50.0040.00416.50
7.4.40.0070.00722.77
7.4.30.0060.01216.58
7.4.00.0060.00614.84
7.3.330.0050.00013.17
7.3.320.0040.00413.03
7.3.310.0030.00316.18
7.3.300.0000.00716.04
7.3.290.0090.00916.11
7.3.280.0060.01016.20
7.3.270.0100.00717.40
7.3.260.0130.01316.60
7.3.250.0080.01216.28
7.3.240.0140.00316.29
7.3.230.0110.00616.39
7.3.210.0030.01716.24
7.3.200.0090.01416.29
7.3.190.0120.00716.12
7.3.180.0070.01416.44
7.3.170.0060.00916.42
7.3.160.0100.00716.35
7.3.120.0090.00714.61
7.3.110.0070.00814.83
7.3.100.0110.00214.70
7.3.90.0060.00914.66
7.3.80.0040.01114.62
7.3.70.0050.01014.74
7.3.60.0050.00914.74
7.3.50.0030.01114.65
7.3.40.0020.01314.78
7.3.30.0050.00814.54
7.3.20.0050.00916.65
7.3.10.0080.00616.44
7.3.00.0080.00516.63
7.2.330.0070.01016.24
7.2.320.0110.01116.45
7.2.310.0050.01416.61
7.2.300.0040.01216.20
7.2.290.0060.01016.33
7.2.250.0050.00814.95
7.2.240.0060.01114.99
7.2.230.0050.01314.92
7.2.220.0050.01014.68
7.2.210.0050.01214.97
7.2.200.0050.00714.76
7.2.190.0080.00814.88
7.2.180.0050.01114.74
7.2.170.0040.00914.92
7.2.160.0090.00614.75
7.2.150.0030.01016.67
7.2.140.0080.00416.79
7.2.130.0070.00716.94
7.2.120.0060.00616.95
7.2.110.0060.01216.88
7.2.100.0030.01016.83
7.2.90.0030.01317.09
7.2.80.0000.01216.90
7.2.70.0090.00916.89
7.2.60.0040.00816.94
7.2.50.0070.01016.73
7.2.40.0080.00816.84
7.2.30.0030.01416.92
7.2.20.0080.00417.05
7.2.10.0030.01417.05
7.2.00.0080.00317.94
7.1.330.0030.01215.68
7.1.320.0050.01015.69
7.1.310.0080.00615.74
7.1.300.0040.00815.69
7.1.290.0090.00615.62
7.1.280.0020.01015.66
7.1.270.0050.00915.80
7.1.260.0060.01015.69
7.1.250.0030.01115.70
7.1.100.0060.00617.63
7.1.70.0040.00417.03
7.1.60.0070.01719.32
7.1.50.0200.01034.68
7.1.00.0030.07022.28
7.0.200.0090.00914.56
7.0.140.0070.07022.06
7.0.100.0030.06019.93
7.0.90.0070.08320.00
7.0.80.0070.05319.95
7.0.70.0170.07019.85
7.0.60.0100.04719.78
7.0.50.0070.05720.31
7.0.40.0100.07720.08
7.0.30.0030.08320.00
7.0.20.0130.07020.15
7.0.10.0100.07720.17
7.0.00.0070.08020.14
5.6.280.0070.07021.01
5.6.250.0130.07720.49
5.6.240.0070.08320.69
5.6.230.0070.08320.59
5.6.220.0170.05020.73
5.6.210.0170.07720.68
5.6.200.0000.09021.17
5.6.190.0070.08321.11
5.6.180.0070.08321.03
5.6.170.0130.07020.99
5.6.160.0200.07721.07
5.6.150.0100.07021.13
5.6.140.0200.07021.16
5.6.130.0100.08021.04
5.6.120.0100.07721.00
5.6.110.0070.05020.99
5.6.100.0070.08721.02
5.6.90.0130.07720.94
5.6.80.0070.04720.52
5.6.70.0200.06320.37
5.6.60.0130.03720.46
5.6.50.0070.07720.32
5.6.40.0230.06320.39
5.6.30.0070.06720.52
5.6.20.0070.08020.36
5.6.10.0200.06320.36
5.6.00.0030.08020.29
5.5.380.0100.07720.51
5.5.370.0100.04720.37
5.5.360.0070.08320.55
5.5.350.0030.05020.45
5.5.340.0070.08020.87
5.5.330.0070.08720.78
5.5.320.0130.08020.86
5.5.310.0130.07320.88
5.5.300.0170.07320.89
5.5.290.0130.08320.90
5.5.280.0070.07320.87
5.5.270.0170.07320.88
5.5.260.0100.07320.91
5.5.250.0200.07020.43
5.5.240.0070.07720.11
5.5.230.0030.09020.29
5.5.220.0030.07720.01
5.5.210.0070.07720.12
5.5.200.0030.07720.28
5.5.190.0070.08320.10
5.5.180.0100.07720.27
5.5.160.0130.06720.26
5.5.150.0130.06720.26
5.5.140.0230.06020.14
5.5.130.0070.07320.20
5.5.120.0070.07320.22
5.5.110.0100.07320.26
5.5.100.0170.06320.12
5.5.90.0000.08719.97
5.5.80.0070.07720.14
5.5.70.0170.07320.14
5.5.60.0070.07320.14
5.5.50.0070.07720.05
5.5.40.0070.08020.14
5.5.30.0130.07020.04
5.5.20.0100.06020.09
5.5.10.0070.08020.11
5.5.00.0070.08019.96
5.4.450.0030.06719.48
5.4.440.0070.07719.45
5.4.430.0130.06719.46
5.4.420.0000.08319.45
5.4.410.0030.07719.14
5.4.400.0030.07718.95
5.4.390.0070.07318.90
5.4.380.0070.07319.15
5.4.370.0070.07018.84
5.4.360.0100.07019.13
5.4.350.0130.07318.99
5.4.340.0070.08018.97
5.4.320.0130.03319.12
5.4.310.0100.06718.97
5.4.300.0230.05719.06
5.4.290.0030.08319.06
5.4.280.0130.07019.22
5.4.270.0130.06719.03
5.4.260.0070.08319.06
5.4.250.0100.07319.14
5.4.240.0030.08018.89
5.4.230.0100.06719.05
5.4.220.0130.06719.11
5.4.210.0000.08018.96
5.4.200.0100.07319.03
5.4.190.0100.07319.12
5.4.180.0070.04319.13
5.4.170.0100.07718.82
5.4.160.0000.08319.17
5.4.150.0100.07318.88
5.4.140.0070.08016.08
5.4.130.0130.06716.28
5.4.120.0070.07016.12
5.4.110.0030.08016.29
5.4.100.0030.06316.32
5.4.90.0070.07716.31
5.4.80.0100.07016.43
5.4.70.0070.07316.35
5.4.60.0000.05716.32
5.4.50.0000.04716.28
5.4.40.0070.07016.47
5.4.30.0070.07316.39
5.4.20.0100.06016.19
5.4.10.0030.04316.23
5.4.00.0030.06315.81
5.3.290.0070.04314.50
5.3.280.0170.06714.58
5.3.270.0100.07314.45
5.3.260.0070.07314.60
5.3.250.0200.04714.58
5.3.240.0070.07014.61
5.3.230.0170.06314.54
5.3.220.0070.04314.56
5.3.210.0030.08314.56
5.3.200.0170.07014.52
5.3.190.0170.06014.50
5.3.180.0030.07314.56
5.3.170.0070.07014.52
5.3.160.0100.07314.49
5.3.150.0070.07714.38
5.3.140.0130.06314.38
5.3.130.0070.06014.48
5.3.120.0000.04714.36
5.3.110.0030.08314.50
5.3.100.0100.07014.07
5.3.90.0030.07314.07
5.3.80.0070.08014.07
5.3.70.0070.07314.07
5.3.60.0000.08014.07
5.3.50.0030.07014.07
5.3.40.0130.06314.07
5.3.30.0070.07314.07
5.3.20.0030.06314.07
5.3.10.0070.07714.07
5.3.00.0100.07014.07

preferences:
43.82 ms | 401 KiB | 5 Q