3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $arr['i1'] = 99; $arr['i2'] = 89; function cmp($a, $b) { if ($GLOBALS['arr'][$a] > $GLOBALS['arr'][$b]) { return 1; } if ($GLOBALS['arr'][$a] < $GLOBALS['arr'][$b]) { return -1; } return 0; } if (uksort($arr, 'cmp')) { echo "success"; } else { echo "failure"; } 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.0140.00018.15
8.3.50.0100.00921.92
8.3.40.0030.01218.78
8.3.30.0070.01020.21
8.3.20.0040.00420.33
8.3.10.0030.00521.87
8.3.00.0080.00022.50
8.2.180.0070.01118.54
8.2.170.0100.00322.96
8.2.160.0080.00822.18
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.95
8.2.110.0090.00022.07
8.2.100.0060.00617.84
8.2.90.0040.00419.05
8.2.80.0080.00019.38
8.2.70.0040.00417.75
8.2.60.0030.00518.05
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0080.00018.21
8.2.20.0040.00417.71
8.2.10.0040.00417.81
8.2.00.0090.00017.80
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0070.00319.02
8.1.220.0050.00317.80
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0000.00817.53
8.1.180.0040.00419.01
8.1.170.0040.00418.69
8.1.160.0000.00722.12
8.1.150.0040.00418.71
8.1.140.0030.00617.37
8.1.130.0070.00017.76
8.1.120.0000.00917.38
8.1.110.0040.00417.45
8.1.100.0020.00517.43
8.1.90.0000.00717.51
8.1.80.0000.00717.43
8.1.70.0070.00017.42
8.1.60.0030.00517.45
8.1.50.0040.00417.57
8.1.40.0040.00417.50
8.1.30.0000.00717.64
8.1.20.0060.00317.66
8.1.10.0040.00417.55
8.1.00.0050.00317.41
8.0.300.0000.00718.77
8.0.290.0000.00717.05
8.0.280.0050.00218.51
8.0.270.0030.00317.32
8.0.260.0070.00016.85
8.0.250.0050.00216.96
8.0.240.0020.00516.84
8.0.230.0000.00716.98
8.0.220.0000.00716.96
8.0.210.0070.00016.93
8.0.200.0000.00616.88
8.0.190.0000.00716.84
8.0.180.0040.00417.00
8.0.170.0040.00417.00
8.0.160.0000.00716.88
8.0.150.0040.00416.81
8.0.140.0040.00416.90
8.0.130.0050.00013.32
8.0.120.0000.00816.92
8.0.110.0040.00416.95
8.0.100.0050.00216.93
8.0.90.0000.00816.84
8.0.80.0090.00616.90
8.0.70.0030.00516.71
8.0.60.0040.00416.81
8.0.50.0050.00316.97
8.0.30.0080.01017.12
8.0.20.0060.01217.40
8.0.10.0040.00417.07
8.0.00.0080.01416.84
7.4.330.0000.00715.00
7.4.320.0030.00316.53
7.4.300.0000.00616.67
7.4.290.0000.00716.66
7.4.280.0000.00816.59
7.4.270.0040.00416.60
7.4.260.0000.00713.30
7.4.250.0000.00816.57
7.4.240.0020.00516.56
7.4.230.0070.00016.64
7.4.220.0190.00316.63
7.4.210.0070.00716.60
7.4.200.0000.00716.56
7.4.190.0070.00016.77
7.4.160.0070.01116.53
7.4.150.0130.00317.40
7.4.140.0140.00317.86
7.4.130.0120.00716.52
7.4.120.0100.00616.53
7.4.110.0070.01016.45
7.4.100.0120.00416.68
7.4.90.0100.00716.38
7.4.80.0120.00619.39
7.4.70.0060.01116.57
7.4.60.0090.01616.55
7.4.50.0000.00916.54
7.4.40.0030.01222.77
7.4.30.0160.00316.35
7.4.00.0060.01314.89
7.3.330.0000.00513.39
7.3.320.0060.00013.22
7.3.310.0030.00316.16
7.3.300.0000.00716.20
7.3.290.0070.00716.32
7.3.280.0090.00616.30
7.3.270.0090.01217.40
7.3.260.0070.01016.50
7.3.250.0090.00816.35
7.3.240.0140.00316.61
7.3.230.0090.01016.39
7.3.210.0100.00616.57
7.3.200.0160.00019.39
7.3.190.0100.00716.27
7.3.180.0110.00416.36
7.3.170.0080.00816.50
7.3.160.0090.00916.25
7.3.120.0090.00814.81
7.3.110.0060.01214.75
7.3.100.0060.00714.77
7.3.90.0080.00514.71
7.3.80.0060.00614.85
7.3.70.0090.00414.82
7.3.60.0030.00714.65
7.3.50.0070.00414.82
7.3.40.0070.00814.81
7.3.30.0080.00514.81
7.3.20.0040.01116.48
7.3.10.0070.00716.61
7.3.00.0100.00316.58
7.2.330.0160.00916.75
7.2.320.0140.00316.35
7.2.310.0200.02916.79
7.2.300.0090.00616.79
7.2.290.0030.01316.71
7.2.250.0060.01315.13
7.2.240.0110.00815.05
7.2.230.0030.01014.95
7.2.220.0090.00715.24
7.2.210.0050.00914.91
7.2.200.0030.01314.97
7.2.190.0040.01015.22
7.2.180.0080.00915.30
7.2.170.0060.01115.06
7.2.60.0080.00416.84
7.2.00.0070.00719.31
7.1.330.0070.01015.68
7.1.320.0050.00515.72
7.1.310.0050.00815.78
7.1.300.0020.00915.55
7.1.290.0050.00915.85
7.1.280.0080.00515.66
7.1.270.0000.01215.83
7.1.260.0040.00715.65
7.1.200.0090.00315.70
7.1.100.0000.01418.02
7.1.70.0030.00517.04
7.1.60.0160.01019.43
7.1.50.0030.00816.91
7.1.00.0000.03722.36
7.0.200.0070.00316.76
7.0.140.0030.07322.08
7.0.60.0000.04320.07
7.0.50.0070.08017.88
7.0.40.0030.04320.25
7.0.30.0270.08020.24
7.0.20.0270.07720.07
7.0.10.0070.05320.10
7.0.00.0100.05320.22
5.6.280.0030.07321.13
5.6.210.0070.07720.48
5.6.200.0070.08018.28
5.6.190.0030.04320.49
5.6.180.0330.05720.39
5.6.170.0200.07720.56
5.6.160.0100.07720.39
5.6.150.0000.04018.18
5.6.140.0130.07318.14
5.6.130.0100.08318.24
5.6.120.0300.05321.09
5.6.110.0100.08321.13
5.6.100.0030.07321.11
5.6.90.0070.07020.89
5.6.80.0070.08320.41
5.5.350.0400.06320.35
5.5.340.0030.08017.96
5.5.330.0070.04020.36
5.5.320.0200.04020.28
5.5.310.0370.05320.20
5.5.300.0100.06317.98
5.5.290.0000.07318.06
5.5.280.0130.08020.88
5.5.270.0130.06720.87
5.5.260.0070.04020.86
5.5.250.0100.04720.54
5.5.240.0000.08720.15
5.4.450.0870.04719.58
5.4.440.0830.05319.60
5.4.430.0900.05719.45
5.4.420.0970.04719.48
5.4.410.0170.05019.00
5.4.400.0200.05718.86
5.4.390.0330.05018.78
5.4.380.0100.05718.80
5.4.370.0030.04018.47
5.4.360.0030.04018.63
5.4.350.0040.04712.02
5.4.340.0060.04112.01
5.4.320.0050.04112.51
5.4.310.0030.04512.50
5.4.300.0070.03512.51
5.4.290.0060.03812.50
5.4.280.0060.03512.39
5.4.270.0060.04312.39
5.4.260.0120.03812.40
5.4.250.0050.03712.40
5.4.240.0060.03612.39
5.4.230.0070.04012.39
5.4.220.0040.04812.39
5.4.210.0090.03912.39
5.4.200.0050.04212.39
5.4.190.0100.05018.73
5.4.180.0000.05719.09
5.4.170.0170.05318.77
5.4.160.0170.05018.82
5.4.150.0100.06018.97
5.4.140.0100.05016.54
5.4.130.0030.05316.34
5.4.120.0030.07316.46
5.4.110.0100.06716.46
5.4.100.0030.05016.36
5.4.90.0130.04316.30
5.4.80.0070.04716.44
5.4.70.0100.04716.40
5.4.60.0130.04316.34
5.4.50.0070.06716.36
5.4.40.0070.04716.67
5.4.30.0070.04716.25
5.4.20.0130.04016.55
5.4.10.0030.07316.39
5.4.00.0030.05015.97
5.3.290.0060.03812.80
5.3.280.0070.03612.71
5.3.270.0070.05314.69
5.3.260.0130.07014.82
5.3.250.0030.05314.51
5.3.240.0170.04014.69
5.3.230.0130.07014.43
5.3.220.0070.06014.79
5.3.210.0030.05314.57
5.3.200.0070.05314.65
5.3.190.0100.05014.57
5.3.180.0170.04014.66
5.3.170.0070.07314.78
5.3.160.0030.05014.54
5.3.150.0030.06714.39
5.3.140.0030.05014.52
5.3.130.0100.05014.56
5.3.120.0000.05714.45
5.3.110.0070.05014.63
5.3.100.0070.05014.02
5.3.90.0070.05014.18
5.3.80.0030.05014.10
5.3.70.0130.04313.85
5.3.60.0000.05313.90
5.3.50.0070.04714.11
5.3.40.0070.06014.17
5.3.30.0030.07314.13
5.3.20.0100.06313.88
5.3.10.0030.05013.64
5.3.00.0100.05713.73
5.2.170.0100.05011.21
5.2.160.0030.04011.13
5.2.150.0130.04711.14
5.2.140.0100.04310.97
5.2.130.0130.03011.00
5.2.120.0070.03711.26
5.2.110.0070.04011.28
5.2.100.0000.04011.07
5.2.90.0170.04011.16
5.2.80.0000.04311.20
5.2.70.0030.06011.16
5.2.60.0130.04011.04
5.2.50.0070.04010.92
5.2.40.0100.04710.98
5.2.30.0070.04311.05
5.2.20.0100.03310.94
5.2.10.0070.05010.81
5.2.00.0000.05310.69
5.1.60.0030.03310.19
5.1.50.0000.03710.05
5.1.40.0070.03310.03
5.1.30.0170.02310.42
5.1.20.0100.03310.54
5.1.10.0070.04310.14
5.1.00.0130.0379.98
5.0.50.0000.0308.50
5.0.40.0030.0378.56
5.0.30.0030.0408.29
5.0.20.0070.0338.28
5.0.10.0100.0238.26
5.0.00.0030.0408.15
4.4.90.0000.0236.49
4.4.80.0000.0206.49
4.4.70.0070.0176.49
4.4.60.0000.0236.49
4.4.50.0100.0236.49
4.4.40.0000.0376.49
4.4.30.0000.0276.49
4.4.20.0000.0206.49
4.4.10.0100.0206.49
4.4.00.0030.0306.49
4.3.110.0000.0236.49
4.3.100.0030.0206.49
4.3.90.0100.0176.49
4.3.80.0000.0336.49
4.3.70.0030.0276.49
4.3.60.0030.0276.49
4.3.50.0000.0276.49
4.3.40.0000.0336.49
4.3.30.0030.0276.49
4.3.20.0000.0236.49
4.3.10.0070.0176.49
4.3.00.0070.0178.54

preferences:
41.27 ms | 401 KiB | 5 Q