3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( array("type"=>"fruit", "price"=>3.50), array("type"=>"milk", "price"=>2.90), array("type"=>"pork", "price"=>5.43), ); $inventory = $data; $time = microtime(true); array_multisort(array_column($inventory, 'price'), SORT_DESC, $inventory); echo microtime(true)-$time;

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)
7.4.10.0060.01015.08
7.4.00.0050.01414.74
7.3.130.0070.01114.59
7.3.120.0050.01214.72
7.3.110.0090.00614.63
7.3.100.0080.00514.98
7.3.90.0030.01114.78
7.3.80.0090.00214.77
7.3.70.0080.00514.84
7.3.60.0030.00814.68
7.3.50.0090.00714.76
7.3.40.0120.00514.94
7.3.30.0050.00714.80
7.3.20.0020.01416.64
7.3.10.0060.00816.59
7.3.00.0060.00616.69
7.2.260.0040.01514.95
7.2.250.0050.01215.00
7.2.240.0060.01114.87
7.2.230.0070.01014.90
7.2.220.0060.01114.93
7.2.210.0050.01015.09
7.2.200.0040.01015.01
7.2.190.0070.01114.89
7.2.180.0050.01014.91
7.2.170.0070.00514.79
7.2.160.0030.00914.72
7.2.150.0060.00316.96
7.2.140.0070.01116.73
7.2.130.0040.01116.84
7.2.120.0050.00616.84
7.2.110.0050.01016.94
7.2.100.0080.00516.77
7.2.90.0090.00716.99
7.2.80.0000.01516.89
7.2.70.0070.00716.73
7.2.60.0050.00816.67
7.2.50.0090.00716.88
7.2.40.0030.00916.82
7.2.30.0050.01016.94
7.2.20.0060.00916.91
7.2.10.0040.01116.83
7.2.00.0090.00716.84
7.1.330.0030.01015.81
7.1.320.0060.00515.54
7.1.310.0040.01015.89
7.1.300.0080.00615.63
7.1.290.0040.01015.82
7.1.280.0090.00515.79
7.1.270.0030.00915.68
7.1.260.0080.00815.86
7.1.250.0080.00515.57
7.1.240.0070.00715.52
7.1.230.0070.00715.76
7.1.220.0060.00915.52
7.1.210.0000.01315.85
7.1.200.0030.01315.61
7.1.190.0000.01115.80
7.1.180.0030.01015.49
7.1.170.0040.01115.72
7.1.160.0080.00515.66
7.1.150.0030.00615.54
7.1.140.0080.00615.84
7.1.130.0000.01215.78
7.1.120.0110.00315.91
7.1.110.0100.00715.69
7.1.100.0060.00617.03
7.1.90.0030.01115.71
7.1.80.0070.00715.77
7.1.70.0020.01116.49
7.1.60.0180.01024.40
7.1.50.0220.00424.40
7.1.40.0220.01024.13
7.1.30.0200.01324.29
7.1.20.0300.01724.21
7.1.10.0160.01115.21
7.1.00.0180.01415.28
7.0.330.0090.00315.37
7.0.320.0070.00715.27
7.0.310.0070.00715.05
7.0.300.0040.00415.47
7.0.290.0070.00315.58
7.0.280.0040.01115.35
7.0.270.0090.00315.19
7.0.260.0110.00315.20
7.0.250.0090.00315.31
7.0.240.0060.00915.34
7.0.230.0000.01115.37
7.0.220.0110.00415.13
7.0.210.0000.00915.53
7.0.200.0150.00715.04
7.0.190.0120.00815.33
7.0.180.0130.00915.08
7.0.170.0270.00514.81
7.0.160.0750.00814.75
7.0.150.0150.00714.82
7.0.140.0150.00714.95
7.0.130.0170.00615.04
7.0.120.0130.00915.00
7.0.110.0160.00814.89
7.0.100.0160.00814.98
7.0.90.0150.00814.96
7.0.80.0100.01214.80
7.0.70.0120.01115.06
7.0.60.0130.01114.75
7.0.50.0230.00814.96
7.0.40.0180.00914.03
7.0.30.0200.01014.03
7.0.20.0170.00814.10
7.0.10.0130.00813.99
7.0.00.0170.00814.02
5.6.400.0030.01014.33
5.6.390.0000.00913.86
5.6.380.0030.00614.36
5.6.370.0040.01114.32
5.6.360.0030.00714.52
5.6.350.0000.01314.14
5.6.340.0000.01314.43
5.6.330.0070.00314.22
5.6.320.0090.00314.68
5.6.310.0100.00314.40
5.6.300.0140.00413.97
5.6.290.0060.00314.59
5.6.280.0040.00714.31
5.6.270.0100.00314.42
5.6.260.0030.01314.05
5.6.250.0070.00714.35
5.6.240.0070.00714.31
5.6.230.0000.01514.48
5.6.220.0130.00314.66
5.6.210.0090.00614.24
5.6.200.0030.01214.60
5.6.190.0110.00314.30
5.6.180.0130.00314.36
5.6.170.0080.00414.26
5.6.160.0060.00314.61
5.6.150.0030.01114.71
5.6.140.0030.00614.30
5.6.130.0110.00414.58
5.6.120.0030.00714.45
5.6.110.0000.01114.16
5.6.100.0070.01014.41
5.6.90.0030.01414.25
5.6.80.0120.00314.21
5.6.70.0030.00914.22
5.6.60.0040.01414.36
5.6.50.0030.01014.10
5.6.40.0040.00814.20
5.6.30.0040.01114.54
5.6.20.0070.00714.59
5.6.10.0040.01114.25
5.6.00.0030.00814.06

preferences:
24.38 ms | 401 KiB | 5 Q