3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tags = array('Test', 'tests', 'tes', 'abc'); usort($tags, function($a, $b) { return strcasecmp($a, $b); }); var_dump($tags); echo phpversion ();

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.00.0090.00914.84
7.3.120.0090.00614.73
7.3.110.0030.01414.64
7.3.100.0040.00815.01
7.3.90.0070.00714.93
7.3.80.0130.00314.70
7.3.70.0080.00614.70
7.3.60.0100.00314.66
7.3.50.0030.01014.64
7.3.40.0040.01114.54
7.3.30.0040.01114.75
7.3.20.0070.00716.55
7.3.10.0040.01016.51
7.3.00.0030.01016.40
7.2.250.0110.00415.15
7.2.240.0030.01714.82
7.2.230.0070.00714.93
7.2.220.0030.00814.67
7.2.210.0000.01015.07
7.2.200.0030.01014.91
7.2.190.0030.01314.78
7.2.180.0050.00914.80
7.2.170.0060.00314.86
7.2.130.0020.01016.63
7.2.120.0060.00616.50
7.2.110.0050.00716.56
7.2.100.0050.00916.72
7.2.90.0090.00416.61
7.2.80.0010.00916.54
7.2.70.0020.00916.64
7.2.60.0030.00916.78
7.2.50.0050.00816.75
7.2.40.0060.00616.72
7.2.30.0030.01016.67
7.2.20.0080.00516.65
7.2.10.0070.00716.68
7.2.00.0060.00817.73
7.1.330.0060.00815.81
7.1.320.0030.00715.74
7.1.310.0080.00415.63
7.1.300.0070.01115.69
7.1.290.0030.00615.66
7.1.280.0070.00715.65
7.1.270.0030.00715.73
7.1.260.0030.01215.95
7.1.250.0080.00615.82
7.1.100.0060.00617.91
7.1.70.0000.01316.80
7.1.60.0060.01819.43
7.1.50.0140.01016.87
7.1.00.0000.04022.30
7.0.200.0130.00316.84
7.0.140.0130.06321.96
7.0.60.0100.07021.82
7.0.50.0000.07317.88
7.0.40.0100.07320.24
7.0.30.0370.07020.19
7.0.20.0470.06720.23
7.0.10.0070.04020.45
7.0.00.0030.08720.16
5.6.280.0100.06721.07
5.6.210.0100.07320.50
5.6.200.0000.04318.16
5.6.190.0070.08020.68
5.6.180.0430.04720.54
5.6.170.0230.04320.57
5.6.160.0100.07320.47
5.6.150.0030.07718.21
5.6.140.0030.08718.15
5.6.130.0200.06018.25
5.6.120.0030.04721.01
5.6.110.0130.07721.13
5.6.100.0100.07720.99
5.6.90.0100.08321.11
5.6.80.0000.04020.43
5.5.350.4230.04320.33
5.5.340.0070.04017.93
5.5.330.0070.07320.40
5.5.320.0300.07320.20
5.5.310.0230.08020.51
5.5.300.0070.03717.95
5.5.290.0170.03718.02
5.5.280.0030.05320.90
5.5.270.0130.08320.93
5.5.260.0030.09020.86
5.5.250.0000.08720.69
5.5.240.0000.07720.23
5.4.450.2500.03719.30
5.4.440.3470.04319.48
5.4.430.4770.04719.55
5.4.420.4630.03319.38
5.4.410.4500.03019.42
5.4.400.4230.03018.95
5.4.390.4030.03719.18
5.4.380.3730.03718.96
5.4.370.3670.04319.23
5.4.360.4000.02719.11
5.4.350.3530.03319.10
5.4.340.3800.03718.95
5.4.320.4100.04019.07
5.4.310.4070.04319.23
5.4.300.3830.03719.12
5.4.290.4000.03319.16
5.4.280.4130.03719.04
5.4.270.4130.03318.97
5.4.260.3570.03719.06
5.4.250.3630.03719.22
5.4.240.4500.03719.12
5.4.230.4470.03319.18
5.4.220.4200.04019.21
5.4.210.4600.02719.21
5.4.200.4500.03719.05
5.4.190.4830.03718.98
5.4.180.3670.03319.12
5.4.170.4170.03319.25
5.4.160.3330.03719.24
5.4.150.3570.03319.11
5.4.140.0100.03716.41
5.4.130.0000.03716.45
5.4.120.3100.03316.44
5.4.110.2730.03316.45
5.4.100.3600.03316.25
5.4.90.4000.04016.52
5.4.80.3830.03316.63
5.4.70.4630.03316.46
5.4.60.4670.03316.48
5.4.50.4870.03316.45
5.4.40.4030.03316.41
5.4.30.3230.03716.23
5.4.20.0100.04016.24
5.4.10.3930.03716.29
5.4.00.3870.03315.80
5.3.290.4070.03714.81
5.3.280.4000.03714.66
5.3.270.3270.04314.61
5.3.260.3300.03714.61
5.3.250.3230.03714.52
5.3.240.0000.04014.61
5.3.230.1700.03314.62
5.3.220.3600.03714.62
5.3.210.2770.03314.45
5.3.200.3170.04014.61
5.3.190.3770.04014.59
5.3.180.4130.03714.45
5.3.170.4570.04314.59
5.3.160.4370.03014.56
5.3.150.4600.04014.56
5.3.140.3870.03714.55
5.3.130.0030.08014.60
5.3.120.0070.08014.55
5.3.110.2570.05014.43
5.3.100.4030.04314.08
5.3.90.4800.04714.05
5.3.80.3500.04014.17
5.3.70.4230.03714.02
5.3.60.3370.03314.16
5.3.50.3970.03313.89
5.3.40.3870.03714.11
5.3.30.3670.03313.96
5.3.20.3930.03313.61
5.3.10.4070.03713.73
5.3.00.3930.03013.65
5.2.170.3030.03311.15
5.2.160.3230.03011.11
5.2.150.3300.02711.08
5.2.140.3070.02311.13
5.2.130.2870.02711.10
5.2.120.3000.02311.26
5.2.110.3270.03011.01
5.2.100.3230.02711.03
5.2.90.3130.03011.04
5.2.80.3300.02310.98
5.2.70.3230.03011.18
5.2.60.3000.02711.03
5.2.50.3430.03010.91
5.2.40.2900.03010.82
5.2.30.2870.03711.12
5.2.20.3170.03010.93
5.2.10.2870.03010.88
5.2.00.3230.02310.61
5.1.60.3070.0209.94
5.1.50.2770.0309.96
5.1.40.3200.02710.01
5.1.30.3300.02310.39
5.1.20.2830.02710.36
5.1.10.2900.03010.05
5.1.00.3070.02310.14
5.0.50.1770.0208.62
5.0.40.1730.0178.41
5.0.30.1830.0338.06
5.0.20.1230.0208.24
5.0.10.1270.0208.12
5.0.00.1200.0378.16
4.4.90.1630.0176.66
4.4.80.1500.0136.66
4.4.70.1770.0176.66
4.4.60.1430.0176.66
4.4.50.1700.0176.66
4.4.40.1870.0236.66
4.4.30.1770.0176.66
4.4.20.1470.0136.66
4.4.10.1800.0176.66
4.4.00.1530.0276.66
4.3.110.1470.0206.66
4.3.100.1430.0206.66
4.3.90.1170.0136.66
4.3.80.1200.0276.66
4.3.70.1430.0176.66
4.3.60.1530.0176.66
4.3.50.1430.0176.66
4.3.40.1500.0276.66
4.3.30.0800.0176.66
4.3.20.0170.0276.66
4.3.10.0770.0206.66
4.3.00.0900.0206.66

preferences:
35.24 ms | 400 KiB | 5 Q