3v4l.org

run code in 200+ PHP versions simultaneously
<?php $arr = [ 'k1' => 0, 'k2' => 1, 'k3' => 0, 'k4' => 0, 'k5' => 3, 'k6' => 0, 'k7' => 4, 'k8' => 0, 'k9' => 0, 'k10' => 0, 'k11' => 0, 'k12' => 0, 'k13' => 0, 'k14' => 0, 'k15' => 0, 'k16' => 0, 'k17' => 0, ]; asort($arr); var_dump($arr);

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.60.0100.00916.42
7.4.50.0090.00916.33
7.4.40.0120.00916.33
7.4.30.0100.00816.32
7.4.20.0110.00816.33
7.4.10.0100.01016.34
7.4.00.0090.01016.39
7.3.180.0110.00816.16
7.3.170.0100.00816.17
7.3.160.0100.00916.19
7.3.150.0100.00816.19
7.3.140.0100.00716.13
7.3.130.0090.00916.16
7.3.120.0110.00816.22
7.3.110.0070.01216.16
7.3.100.0100.00816.12
7.3.90.0090.00916.19
7.3.80.0100.00916.18
7.3.70.0100.00816.14
7.3.60.0080.01016.14
7.3.50.0090.00916.17
7.3.40.0100.00816.12
7.3.30.0080.01016.16
7.3.20.0130.00916.38
7.3.10.0110.00916.38
7.3.00.0120.00816.39
7.2.310.0100.01016.40
7.2.300.0100.01016.30
7.2.290.0070.01116.29
7.2.280.0100.00816.30
7.2.270.0100.00916.32
7.2.260.0080.01116.37
7.2.250.0100.00916.33
7.2.240.0090.01016.35
7.2.230.0100.01016.36
7.2.220.0090.01016.34
7.2.210.0100.00916.34
7.2.200.0100.01016.31
7.2.190.0100.00916.29
7.2.180.0080.01016.29
7.2.170.0090.00916.28
7.2.160.0080.01016.30
7.2.150.0120.00916.55
7.2.140.0080.01116.59
7.2.130.0120.00816.58
7.2.120.0120.00816.56
7.2.110.0100.01016.59
7.2.100.0080.01116.61
7.2.90.0110.00916.60
7.2.80.0090.01016.55
7.2.70.0120.00916.57
7.2.60.0110.00916.54
7.2.50.0090.01016.53
7.2.40.0100.01016.57
7.2.30.0100.01016.62
7.2.20.0110.01116.57
7.2.10.0100.01116.56
7.2.00.0100.01016.55
7.1.330.0130.01115.41
7.1.320.0160.01015.34
7.1.310.0190.00815.35
7.1.300.0160.01015.26
7.1.290.0140.01115.27
7.1.280.0200.00715.32
7.1.270.0140.01115.30
7.1.260.0160.00815.24
7.1.250.0180.00715.23
7.1.240.0170.00915.27
7.1.230.0180.00715.29
7.1.220.0170.00715.31
7.1.210.0140.01115.28
7.1.200.0170.00915.29
7.1.190.0280.00815.26
7.1.180.0180.00915.28
7.1.170.0160.00915.31
7.1.160.0210.00715.23
7.1.150.0180.00615.23
7.1.140.0190.00815.33
7.1.130.0150.01115.21
7.1.120.0140.01315.20
7.1.110.0110.01215.38
7.1.100.0130.00915.33
7.1.90.0150.00815.36
7.1.80.0200.00915.29
7.1.70.0170.00715.34
7.1.60.0130.01015.20
7.1.50.0160.00915.22
7.1.40.0170.00715.27
7.1.30.0160.01015.40
7.1.20.0180.00815.36
7.1.10.0180.00915.27
7.1.00.0210.01015.32
7.0.330.0160.00914.96
7.0.320.0140.01115.12
7.0.310.0190.00915.09
7.0.300.0200.01115.09
7.0.290.0210.00815.02
7.0.280.0230.00815.02
7.0.270.0180.01114.92
7.0.260.0180.00814.88
7.0.250.0200.00915.02
7.0.240.0160.01014.98
7.0.230.0120.01214.95
7.0.220.0160.00815.04
7.0.210.0150.01014.97
7.0.200.0140.01215.10
7.0.190.0210.00715.03
7.0.180.0150.00914.95
7.0.170.0140.00915.04
7.0.160.0130.01014.90
7.0.150.0160.00915.02
7.0.140.0210.00915.09
7.0.130.0180.00915.03
7.0.120.0210.00615.11
7.0.110.0170.00915.14
7.0.100.0200.01215.06
7.0.90.0170.01015.04
7.0.80.0190.00815.09
7.0.70.0190.00715.04
7.0.60.0140.01215.05
7.0.50.0130.01214.96
7.0.40.0190.00814.95
7.0.30.0180.01114.91
7.0.20.0180.01015.02
7.0.10.0180.00915.08
7.0.00.0150.01214.98
5.6.400.0110.01515.72
5.6.390.0180.01015.56
5.6.380.0140.01415.63
5.6.370.0190.01215.69
5.6.360.0210.00815.61
5.6.350.0150.01315.82
5.6.340.0170.01015.63
5.6.330.0160.01315.69
5.6.320.0150.01115.72
5.6.310.0170.00815.78
5.6.300.0180.01115.60
5.6.290.0210.00815.71
5.6.280.0190.00915.65
5.6.270.0160.01415.59
5.6.260.0190.01115.73
5.6.250.0150.01315.68
5.6.240.0180.01215.77
5.6.230.0150.01315.68
5.6.220.0200.00815.73
5.6.210.0140.01615.64
5.6.200.0160.01215.73
5.6.190.0170.01215.78
5.6.180.0140.01315.71
5.6.170.0150.01315.73
5.6.160.0170.01015.70
5.6.150.0130.01415.65
5.6.140.0160.01115.75
5.6.130.0180.01115.69
5.6.120.0170.01215.67
5.6.110.0150.01415.81
5.6.100.0200.01115.66
5.6.90.0190.00915.72
5.6.80.0160.01215.65
5.6.70.0160.01315.59
5.6.60.0170.01015.58
5.6.50.0170.01115.67
5.6.40.0150.01215.71
5.6.30.0170.01015.62
5.6.20.0180.01215.60
5.6.10.0180.01115.55
5.6.00.0150.01315.64
5.5.380.0210.01215.62
5.5.370.0190.01315.71
5.5.360.0180.01315.77
5.5.350.0230.00815.65
5.5.340.0190.01215.68
5.5.330.0180.01315.78
5.5.320.0220.00815.59
5.5.310.0180.01415.74
5.5.300.0160.01615.75
5.5.290.0210.01015.70
5.5.280.0190.01115.68
5.5.270.0190.01515.64
5.5.260.0210.01115.63
5.5.250.0190.01215.58
5.5.240.0210.01215.58
5.5.230.0160.01315.59
5.5.220.0190.01115.63
5.5.210.0180.01415.62
5.5.200.0140.01815.57
5.5.190.0180.01015.57
5.5.180.0170.01515.62
5.5.170.0160.01515.64
5.5.160.0180.01215.59
5.5.150.0200.01215.59
5.5.140.0200.01115.65
5.5.130.0170.01315.60
5.5.120.0190.01315.58
5.5.110.0150.01715.61
5.5.100.0190.01115.65
5.5.90.0190.01315.63
5.5.80.0200.01115.67
5.5.70.0220.00915.57
5.5.60.0160.01315.64
5.5.50.0150.01515.52
5.5.40.0160.01315.56
5.5.30.0210.00915.69
5.5.20.0160.01315.53
5.5.10.0230.00915.53
5.5.00.0200.01015.55
5.4.450.0170.00712.45
5.4.440.0160.00912.48
5.4.430.0160.00712.49
5.4.420.0150.00812.49
5.4.410.0180.00712.47
5.4.400.0140.00912.39
5.4.390.0150.00912.28
5.4.380.0110.01112.36
5.4.370.0160.00712.39
5.4.360.0160.00512.38
5.4.350.0150.00712.51
5.4.340.0150.01012.45
5.4.330.0170.00612.45
5.4.320.0140.00712.37
5.4.310.0140.00812.42
5.4.300.0180.00712.38
5.4.290.0140.00812.48
5.4.280.0140.00912.36
5.4.270.0150.01012.43
5.4.260.0160.00512.36
5.4.250.0170.00712.36
5.4.240.0160.00512.48
5.4.230.0110.01112.43
5.4.220.0140.00912.37
5.4.210.0140.00712.35
5.4.200.0140.00912.44
5.4.190.0150.00712.45
5.4.180.0160.00712.36
5.4.170.0140.00912.40
5.4.160.0160.00812.37
5.4.150.0120.01012.44
5.4.140.0180.00712.43
5.4.130.0120.00712.38
5.4.120.0150.00812.48
5.4.110.0130.00812.39
5.4.100.0140.00712.50
5.4.90.0120.00912.38
5.4.80.0160.00812.46
5.4.70.0130.00812.52
5.4.60.0150.00712.44
5.4.50.0120.01012.39
5.4.40.0170.00512.42
5.4.30.0130.00912.42
5.4.20.0120.00912.47
5.4.10.0140.00612.43
5.4.00.0090.00912.49
5.3.290.0120.01212.69
5.3.280.0160.00812.62
5.3.270.0160.00712.67
5.3.260.0130.01012.68
5.3.250.0150.00912.72
5.3.240.0140.00912.53
5.3.230.0120.01012.64
5.3.220.0120.01012.59
5.3.210.0140.00912.65
5.3.200.0190.00412.69
5.3.190.0130.00812.80
5.3.180.0130.00912.79
5.3.170.0130.00812.79
5.3.160.0130.00912.78
5.3.150.0160.00512.83
5.3.140.0150.00812.75
5.3.130.0140.00712.79
5.3.120.0110.01012.76
5.3.110.0110.01012.74
5.3.100.0100.00812.78
5.3.90.0130.00812.81
5.3.80.0130.00812.67
5.3.70.0120.00712.68
5.3.60.0100.01112.75
5.3.50.0140.00612.58
5.3.40.0130.00912.64
5.3.30.0120.00812.65
5.3.20.0110.00812.70
5.3.10.0130.00812.54
5.3.00.0100.00912.50
5.2.170.0100.00811.84
5.2.160.0110.00811.73
5.2.150.0100.00911.82
5.2.140.0080.01011.75
5.2.130.0090.01111.77
5.2.120.0110.00711.69
5.2.110.0120.00611.71
5.2.100.0140.00611.77
5.2.90.0130.00611.71
5.2.80.0130.00611.70
5.2.70.0110.00811.67
5.2.60.0110.00811.58
5.2.50.0140.00611.71
5.2.40.0070.01111.75
5.2.30.0120.00611.67
5.2.20.0110.00811.53
5.2.10.0080.01111.50
5.2.00.0110.00811.46
5.1.60.0100.00611.27
5.1.50.0080.00811.27
5.1.40.0110.00611.27
5.1.30.0110.00811.31
5.1.20.0110.00611.28
5.1.10.0140.00411.29
5.1.00.0120.00611.27
5.0.50.0090.00511.27
5.0.40.0060.00811.27
5.0.30.0100.00511.27
5.0.20.0100.00411.27
5.0.10.0080.00711.27
5.0.00.0090.00611.27
4.4.90.0050.00511.27
4.4.80.0070.00211.27
4.4.70.0080.00211.27
4.4.60.0050.00411.27
4.4.50.0060.00311.27
4.4.40.0060.00311.27
4.4.30.0050.00311.27
4.4.20.0060.00411.27
4.4.10.0060.00311.27
4.4.00.0050.00311.27
4.3.110.0060.00311.27
4.3.100.0050.00411.27
4.3.90.0050.00411.27
4.3.80.0080.00111.27
4.3.70.0040.00411.27
4.3.60.0040.00511.27
4.3.50.0080.00111.27
4.3.40.0060.00211.27
4.3.30.0060.00211.27
4.3.20.0020.00611.27
4.3.10.0040.00311.27
4.3.00.0050.00211.27