3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items=[3,7,2,9,2,3,8]; $c = function($a, $b) { return $a <=> $b; }; uasort($items, $c); print_r($items);

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.1.90.0050.00217.35
8.1.80.0080.00017.50
8.1.70.0000.00717.50
8.1.60.0060.00317.48
8.1.50.0040.00717.52
8.1.40.0030.00517.52
8.1.30.0070.00017.67
8.1.20.0030.00517.66
8.1.10.0060.00317.42
8.1.00.0040.00417.32
8.0.220.0040.00416.93
8.0.210.0030.00316.83
8.0.200.0000.00616.84
8.0.190.0050.00216.98
8.0.180.0030.00516.79
8.0.170.0040.00416.94
8.0.160.0040.00416.80
8.0.150.0070.00016.89
8.0.140.0000.00716.80
8.0.130.0030.00313.25
8.0.120.0040.00416.83
8.0.110.0070.00016.80
8.0.100.0000.00816.75
8.0.90.0040.00416.94
8.0.80.0070.00816.85
8.0.70.0000.00816.88
8.0.60.0000.00716.98
8.0.50.0070.00016.92
8.0.30.0090.00917.06
8.0.20.0090.01217.40
8.0.10.0040.00416.88
8.0.00.0090.01116.70
7.4.300.0030.00316.63
7.4.290.0000.00816.62
7.4.280.0000.00716.57
7.4.270.0040.00416.55
7.4.260.0060.00316.38
7.4.250.0000.00716.46
7.4.240.0050.00316.53
7.4.230.0000.00716.50
7.4.220.0030.00516.49
7.4.210.0090.00716.49
7.4.200.0000.00716.61
7.4.160.0080.00816.38
7.4.140.0090.01017.86
7.4.130.0100.01016.37
7.4.120.0080.01216.54
7.4.110.0100.00716.54
7.4.100.0070.01016.55
7.4.90.0090.00916.50
7.4.80.0150.00819.39
7.4.70.0080.00816.44
7.4.60.0100.01316.45
7.4.50.0060.00616.19
7.4.40.0070.01016.58
7.4.10.0080.00815.05
7.4.00.0100.00714.83
7.3.330.0050.00013.32
7.3.320.0000.00513.27
7.3.310.0050.00516.29
7.3.300.0030.00316.30
7.3.290.0040.00416.34
7.3.280.0090.00816.23
7.3.260.0080.01016.50
7.3.240.0100.00816.42
7.3.230.0080.00816.38
7.3.210.0100.00716.50
7.3.200.0060.00916.31
7.3.190.0100.00616.35
7.3.180.0070.01016.20
7.3.170.0100.01016.55
7.3.160.0050.00316.31
7.3.130.0100.00614.63
7.3.120.0070.01014.78
7.3.110.0110.00714.76
7.3.100.0060.00714.75
7.3.90.0070.01014.78
7.3.80.0040.00914.77
7.3.70.0020.01314.76
7.3.60.0070.00714.74
7.3.50.0090.00514.86
7.3.40.0070.00414.69
7.3.30.0050.00714.81
7.3.20.0030.01016.67
7.3.10.0070.00716.54
7.3.00.0030.00816.73
7.2.330.0120.00616.40
7.2.320.0140.00316.63
7.2.310.0070.01016.71
7.2.300.0090.01316.50
7.2.290.0140.00316.71
7.2.260.0110.00714.82
7.2.250.0050.01314.82
7.2.240.0060.01014.83
7.2.230.0100.00815.17
7.2.220.0070.00914.89
7.2.210.0090.00714.87
7.2.200.0060.00815.06
7.2.190.0100.00514.73
7.2.180.0080.00515.03
7.2.170.0070.00415.08
7.2.160.0030.01415.13
7.2.150.0060.00916.77
7.2.140.0040.01116.77
7.2.130.0060.01016.71
7.2.120.0060.00916.73
7.2.110.0100.00716.71
7.2.100.0940.00615.83
7.2.90.0860.01015.67
7.2.80.0740.00515.65
7.2.70.0770.00515.55
7.2.60.0770.00315.83
7.2.50.0530.00515.84
7.2.40.0740.00715.60
7.2.30.0830.01315.70
7.2.20.0690.00515.81
7.2.10.0670.01315.68
7.2.00.0850.00415.82
7.1.330.0020.01115.86
7.1.320.0080.00815.90
7.1.310.0060.00915.63
7.1.300.0070.00415.57
7.1.290.0090.00315.66
7.1.280.0050.00915.61
7.1.270.0030.00615.65
7.1.260.0050.00815.87
7.1.250.0000.00915.66
7.1.240.0070.00715.91
7.1.230.0000.01615.59
7.1.220.0970.01014.49
7.1.210.0800.01214.71
7.1.200.0820.00914.78
7.1.190.0550.00314.76
7.1.180.0630.00514.60
7.1.170.0560.00314.80
7.1.160.0710.01214.71
7.1.150.0810.00814.58
7.1.140.0690.01014.67
7.1.130.0670.00514.69
7.1.120.0890.00714.65
7.1.110.0790.00814.70
7.1.100.0900.00514.59
7.1.90.0830.00814.72
7.1.80.0800.00814.74
7.1.70.0980.00814.84
7.1.60.1100.00523.76
7.1.50.1300.01023.73
7.1.40.1120.01123.54
7.1.30.1280.00323.58
7.1.20.1320.01023.47
7.1.10.1450.00814.69
7.1.00.1210.00714.93
7.0.330.0040.00815.34
7.0.320.0000.01115.50
7.0.310.0030.00915.33
7.0.300.0070.00315.11
7.0.290.0000.01215.43
7.0.280.0070.00415.44
7.0.270.0030.01015.09
7.0.260.0060.00315.49
7.0.250.0030.01015.39
7.0.240.0000.01015.53
7.0.230.0040.00715.18
7.0.220.0080.00015.16
7.0.210.0070.00715.43
7.0.200.0050.00315.32
7.0.190.0050.00315.42
7.0.180.0070.00715.50
7.0.170.0070.00715.44
7.0.160.0030.00915.38
7.0.150.0040.00815.35
7.0.140.0080.00015.59
7.0.130.0040.01115.41
7.0.120.0060.00615.34
7.0.110.0090.00615.30
7.0.100.0070.01015.48
7.0.90.0060.00615.53
7.0.80.0070.01015.55
7.0.70.0070.00715.03
7.0.60.0030.01415.52
7.0.50.0030.01015.61
7.0.40.0070.00313.56
7.0.30.0030.00613.34
7.0.20.0030.00913.59
7.0.10.0000.01313.40
7.0.00.0060.00613.39
5.6.400.0040.00414.21
5.6.390.0030.01014.09
5.6.380.0030.00814.08
5.6.370.0030.01014.14
5.6.360.0030.00914.34
5.6.350.0050.00514.27
5.6.340.0060.00914.10
5.6.330.0040.00414.04
5.6.320.0000.00814.10
5.6.310.0030.01014.13
5.6.300.0090.00314.16
5.6.290.0120.00314.14
5.6.280.0130.00014.14
5.6.270.0050.00514.20
5.6.260.0110.00314.28
5.6.250.0030.00514.05
5.6.240.0090.00614.14
5.6.230.0060.01214.02
5.6.220.0040.01213.98
5.6.210.0070.00714.02
5.6.200.0000.01414.32
5.6.190.0070.00713.91
5.6.180.0070.00714.26
5.6.170.0000.01513.97
5.6.160.0000.00813.89
5.6.150.0030.00914.21
5.6.140.0080.00413.87
5.6.130.0000.01114.21
5.6.120.0040.01114.16
5.6.110.0110.00414.23
5.6.100.0060.00914.18
5.6.90.0030.01314.16
5.6.80.0070.01014.21
5.6.70.0030.01013.94
5.6.60.0060.00913.85
5.6.50.0070.00714.23
5.6.40.0030.00713.95
5.6.30.0040.00814.07
5.6.20.0100.00313.99
5.6.10.0030.01214.16
5.6.00.0030.00714.07

preferences:
13.34 ms | 406 KiB | 5 Q