3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( "Products" => array( "code" => "LD", "power" => "5", "channels" => "2" ) ), array( "Products" => array( "code" => "CAE", "power" => "15", "channels" => "1" ) ), array( "Products" => array( "code" => "FC", "power" => "12", "channels" => "1" ) ) ); function mySort($a, $b) { return strcasecmp($b["Products"]["code"], $a["Products"]["code"]); } usort($arr, "mySort"); print_r($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)
8.3.60.0040.01118.31
8.3.50.0110.01021.24
8.3.40.0120.00318.89
8.3.30.0030.01019.10
8.3.20.0080.00020.39
8.3.10.0000.00721.97
8.3.00.0040.00417.50
8.2.180.0000.01518.17
8.2.170.0090.00622.96
8.2.160.0100.00320.38
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00726.16
8.2.120.0060.00319.26
8.2.110.0000.00822.25
8.2.100.0000.01119.21
8.2.90.0040.00419.05
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0030.00718.11
8.2.20.0040.00417.75
8.2.10.0000.00718.03
8.2.00.0000.00718.30
8.1.280.0080.00825.92
8.1.270.0070.01123.86
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.97
8.1.230.0080.00319.10
8.1.220.0030.00617.74
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0000.00917.39
8.1.180.0080.00018.10
8.1.170.0030.00618.57
8.1.160.0040.00422.00
8.1.150.0070.00018.70
8.1.140.0000.00717.30
8.1.130.0000.00717.74
8.1.120.0040.00417.40
8.1.110.0040.00417.38
8.1.100.0040.00417.38
8.1.90.0030.00317.41
8.1.80.0000.00817.37
8.1.70.0000.00817.27
8.1.60.0050.00317.44
8.1.50.0030.00617.38
8.1.40.0030.00617.41
8.1.30.0000.00817.57
8.1.20.0060.00317.52
8.1.10.0070.00017.55
8.1.00.0000.00917.48
8.0.300.0060.00318.77
8.0.290.0040.00416.93
8.0.280.0070.00018.38
8.0.270.0040.00417.11
8.0.260.0000.00617.27
8.0.250.0070.00016.86
8.0.240.0070.00016.91
8.0.230.0030.00316.82
8.0.220.0030.00316.72
8.0.210.0020.00516.74
8.0.200.0060.00016.92
8.0.190.0040.00416.86
8.0.180.0070.00016.78
8.0.170.0050.00316.89
8.0.160.0070.00016.79
8.0.150.0040.00416.78
8.0.140.0060.00316.74
8.0.130.0000.00613.19
8.0.120.0000.00816.85
8.0.110.0020.00516.70
8.0.100.0040.00416.61
8.0.90.0040.00416.82
8.0.80.0090.00616.76
8.0.70.0080.00016.84
8.0.60.0080.00016.79
8.0.50.0050.00316.71
8.0.30.0130.00917.08
8.0.20.0080.00917.40
8.0.10.0050.00316.95
8.0.00.0090.00916.71
7.4.330.0070.00015.03
7.4.320.0000.00616.45
7.4.300.0030.00316.55
7.4.290.0000.00716.36
7.4.280.0040.00416.49
7.4.270.0000.00716.53
7.4.260.0000.00716.55
7.4.250.0050.00316.51
7.4.240.0020.00516.43
7.4.230.0070.00016.24
7.4.220.0150.00416.60
7.4.210.0030.01816.60
7.4.200.0000.00716.51
7.4.150.0090.00917.40
7.4.140.0110.00817.86
7.4.130.0080.01016.51
7.4.120.0050.01316.33
7.4.110.0130.00316.36
7.4.100.0060.01216.58
7.4.90.0060.01116.53
7.4.80.0180.00519.39
7.4.70.0060.01016.63
7.4.60.0080.00816.52
7.4.50.0060.00316.41
7.4.40.0000.01516.08
7.4.30.0190.00416.30
7.4.00.0070.00714.79
7.3.330.0060.00013.16
7.3.320.0030.00313.22
7.3.310.0000.00716.13
7.3.300.0000.00716.11
7.3.290.0040.01016.28
7.3.280.0070.01016.33
7.3.270.0150.00817.40
7.3.260.0160.00916.58
7.3.250.0090.00916.31
7.3.240.0070.01016.52
7.3.230.0100.00716.46
7.3.210.0070.01016.09
7.3.200.0120.01219.39
7.3.190.0130.00316.49
7.3.180.0120.00316.30
7.3.170.0130.00916.31
7.3.160.0030.01216.30
7.3.00.0060.01016.49
7.2.330.0110.02516.64
7.2.320.0120.00416.55
7.2.310.0070.01016.61
7.2.300.0100.00516.47
7.2.290.0120.00616.55
7.2.130.0100.00616.70
7.2.120.0090.00616.78
7.2.110.0030.01016.77
7.2.100.0030.01016.83
7.2.90.0080.00416.87
7.2.80.0040.00816.54
7.2.70.0030.01316.53
7.2.60.0040.01116.52
7.2.50.0100.00716.51
7.2.40.0080.00416.86
7.2.30.0060.00916.82
7.2.20.0060.01016.66
7.2.10.0090.00016.79
7.2.00.0060.00417.93
7.1.250.0130.00315.71
7.1.240.0120.00315.84
7.1.230.0100.00315.64
7.1.220.0040.00815.81
7.1.210.0060.00615.43
7.1.200.0060.00615.84
7.1.190.0070.00715.84
7.1.180.0030.00915.54
7.1.170.0100.00715.48
7.1.160.0060.00315.61
7.1.150.0060.00715.67
7.1.140.0070.00315.80
7.1.130.0070.00715.80
7.1.120.0090.00615.60
7.1.110.0030.00915.79
7.1.100.0050.00616.94
7.1.90.0000.01015.75
7.1.80.0060.00615.64
7.1.70.0070.00516.43
7.1.60.0040.01617.46
7.1.50.0070.01016.09
7.1.40.0080.00315.54
7.1.30.0040.00715.72
7.1.20.0030.00915.55
7.1.10.0080.00815.83
7.1.00.0070.03818.86
7.0.330.0060.00615.19
7.0.320.0070.00415.27
7.0.310.0030.01115.08
7.0.300.0160.00015.22
7.0.290.0130.00315.27
7.0.280.0040.00714.89
7.0.270.0100.00315.06
7.0.260.0100.00314.89
7.0.250.0080.00315.02
7.0.240.0040.01114.87
7.0.230.0040.01114.93
7.0.220.0000.01215.37
7.0.210.0030.01015.20
7.0.200.0050.00915.98
7.0.190.0080.00415.33
7.0.180.0040.01115.30
7.0.170.0000.01015.29
7.0.160.0000.00815.42
7.0.150.0120.00015.36
7.0.140.0040.00815.38
7.0.130.0070.00715.26
7.0.120.0000.01215.36
7.0.110.0070.00715.29
7.0.100.0090.00315.09
7.0.90.0090.00615.25
7.0.80.0030.01015.43
7.0.70.0000.00815.33
7.0.60.0110.04217.77
7.0.50.0070.04316.64
7.0.40.0050.02316.80
7.0.30.0170.03516.55
7.0.20.0120.02516.76
7.0.10.0040.03516.66
7.0.00.0020.02716.68
5.6.380.0080.00814.20
5.6.370.0000.01514.00
5.6.360.0120.00313.77
5.6.350.0100.00513.94
5.6.340.0100.00514.16
5.6.330.0140.00214.17
5.6.320.0120.00514.24
5.6.310.0100.01014.56
5.6.300.0040.01614.23
5.6.290.0030.01014.27
5.6.280.0050.04017.60
5.6.270.0080.00613.94
5.6.260.0070.00714.38
5.6.250.0080.00514.08
5.6.240.0090.00814.10
5.6.230.0000.01614.34
5.6.220.0000.01514.07
5.6.210.0120.04417.33
5.6.200.0060.02216.20
5.6.190.0090.02417.30
5.6.180.0160.03817.28
5.6.170.0200.03717.17
5.6.160.0030.04717.25
5.6.150.0080.02816.12
5.6.140.0070.04216.04
5.6.130.0080.02016.10
5.6.120.0070.02317.54
5.6.110.0110.03917.42
5.6.100.0070.02217.44
5.6.90.0100.04017.54
5.6.80.0120.04117.14
5.6.70.2220.02217.14
5.6.60.0160.00014.31
5.6.50.0030.01013.89
5.6.40.0070.00714.27
5.6.30.0070.00314.00
5.6.20.0040.00814.32
5.6.10.0050.00514.26
5.6.00.0100.00014.13
5.5.380.0060.00611.08
5.5.370.0040.00410.90
5.5.360.0060.00310.91
5.5.350.0050.04315.78
5.5.340.0070.04314.50
5.5.330.0050.04915.61
5.5.320.0230.02715.63
5.5.310.0070.02615.70
5.5.300.0030.04114.55
5.5.290.0080.04014.55
5.5.280.0070.04415.78
5.5.270.0060.04015.89
5.5.260.0030.04915.91
5.5.250.0040.02215.87
5.5.240.0100.03715.53
5.5.230.0000.00610.90
5.5.220.0060.00010.90
5.5.210.0000.00710.90
5.5.200.0060.00311.10
5.5.190.0030.01011.09
5.5.180.0060.00011.23
5.5.170.0070.00310.90
5.5.160.0080.00410.90
5.5.150.0070.00710.97
5.5.140.0030.01011.11
5.5.130.0030.00910.90
5.5.120.0080.00311.12
5.5.110.0030.00310.90
5.5.100.0040.00410.90
5.5.90.0050.00510.90
5.5.80.0000.00811.02
5.5.70.0030.00710.90
5.5.60.0030.00310.90
5.5.50.0040.00811.07
5.5.40.0040.00711.01
5.5.30.0040.00411.02
5.5.20.0040.00410.90
5.5.10.0040.00811.11
5.5.00.0050.00511.07
5.4.450.0200.03415.23
5.4.440.0270.02815.20
5.4.430.0300.02115.31
5.4.420.0140.03315.13
5.4.410.0120.03715.05
5.4.400.0100.03314.72
5.4.390.0090.03214.81
5.4.380.0080.03414.79
5.4.370.0070.03414.82
5.4.360.0080.03114.85
5.4.350.0110.03114.90
5.4.340.0060.03014.71
5.4.330.0030.00710.93
5.4.320.0150.02314.82
5.4.310.0110.02814.73
5.4.300.0070.03514.81
5.4.290.0110.03014.76
5.4.280.0070.03214.68
5.4.270.0100.02814.76
5.4.260.0130.02514.89
5.4.250.0160.03514.81
5.4.240.0130.02814.80
5.4.230.0130.02514.75
5.4.220.0160.02714.85
5.4.210.0100.02914.79
5.4.200.0090.03013.73
5.4.190.0130.02714.78
5.4.180.0100.03414.82
5.4.170.0080.03514.79
5.4.160.0110.03914.80
5.4.150.0070.04214.89
5.4.140.0160.03713.62
5.4.130.0130.03813.65
5.4.120.0090.03913.64
5.4.110.0070.03213.58
5.4.100.0110.03313.61
5.4.90.0130.03313.54
5.4.80.0190.02513.74
5.4.70.0080.04013.69
5.4.60.0080.03913.60
5.4.50.0050.03513.74
5.4.40.0110.03413.68
5.4.30.0100.03813.70
5.4.20.0220.03213.69
5.4.10.0080.03013.59
5.4.00.0090.02913.31
5.3.290.0120.03712.88
5.3.280.0090.03312.84
5.3.270.0120.02812.79
5.3.260.0080.04212.78
5.3.250.0060.03312.78
5.3.240.0040.03712.77
5.3.230.0120.02512.81
5.3.220.0120.03012.83
5.3.210.0070.03312.81
5.3.200.0170.02512.80
5.3.190.0100.02712.84
5.3.180.0070.03012.74
5.3.170.0070.03412.83
5.3.160.0150.03712.74
5.3.150.0070.04112.75
5.3.140.0100.03712.74
5.3.130.0110.02812.74
5.3.120.0120.03312.75
5.3.110.0070.03012.74
5.3.100.0080.02712.58
5.3.90.0040.03512.56
5.3.80.0130.02712.54
5.3.70.0110.03612.46
5.3.60.0080.02812.47
5.3.50.0130.02312.44
5.3.40.0170.02512.48
5.3.30.0120.02812.40
5.3.20.0100.02512.36
5.3.10.0080.02812.30
5.3.00.0120.02512.27
5.2.170.0100.02011.08
5.2.160.0120.01711.03
5.2.150.0090.02211.04
5.2.140.0100.02011.13
5.2.130.0020.03011.01
5.2.120.0140.01811.05
5.2.110.0120.02511.05
5.2.100.0200.01711.05
5.2.90.0080.03111.03
5.2.80.0110.02011.02
5.2.70.0140.02311.10
5.2.60.0050.03210.98
5.2.50.0070.03211.07
5.2.40.0120.02710.98
5.2.30.0150.02410.97
5.2.20.0080.02210.92
5.2.10.0120.02010.93
5.2.00.0080.02610.79
5.1.60.0150.02310.46
5.1.50.0070.01810.47
5.1.40.0040.02310.44
5.1.30.0160.01510.64
5.1.20.0140.02210.73
5.1.10.0070.02010.54
5.1.00.0060.02110.50
5.0.50.0070.0159.73
5.0.40.0080.0179.69
5.0.30.0050.0239.55
5.0.20.0080.0159.59
5.0.10.0040.0169.57
5.0.00.0050.0239.55
4.4.90.0070.0118.41
4.4.80.0020.0148.39
4.4.70.0060.0158.41
4.4.60.0080.0128.44
4.4.50.0060.0138.47
4.4.40.0090.0198.42
4.4.30.0120.0108.46
4.4.20.0030.0138.44
4.4.10.0070.0118.44
4.4.00.0040.0198.41
4.3.110.0060.0158.42
4.3.100.0040.0128.35
4.3.90.0040.0128.35
4.3.80.0030.0228.35
4.3.70.0070.0128.36
4.3.60.0050.0138.41
4.3.50.0050.0138.36
4.3.40.0030.0208.40
4.3.30.0070.0107.76
4.3.20.0020.0177.74
4.3.10.0030.0147.74
4.3.00.0090.01013.35

preferences:
38.23 ms | 401 KiB | 5 Q