3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = microtime(true); for ($i = 0; $i < 1000; $i++) strtr('React/Controller/Website/User', '/', '_'); printf('%.09f', microtime(true) - $s); echo "<br>"; $s = microtime(true); for ($i = 0; $i < 1000; $i++) str_replace('/', '_', 'React/Controller/Website/User'); printf('%.09f', microtime(true) - $s);

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.2.00.0000.01119.21
7.1.70.0040.00417.16
7.1.60.0090.01519.27
7.1.50.0000.01116.88
7.1.00.0070.07022.36
7.0.200.0000.01016.45
7.0.140.0000.08022.00
7.0.60.0070.06319.96
7.0.50.0100.04717.80
7.0.40.0100.09020.16
7.0.30.0300.05020.00
7.0.20.0270.05720.33
7.0.10.0070.08720.30
7.0.00.0100.08720.00
5.6.280.0100.07020.90
5.6.210.0100.07720.50
5.6.200.0030.06718.08
5.6.190.0030.08720.63
5.6.180.0170.04020.41
5.6.170.0230.08320.52
5.6.160.0100.03320.41
5.6.150.0070.08018.18
5.6.140.0000.04718.18
5.6.130.0130.05018.21
5.6.120.0000.08720.96
5.6.110.0230.07720.98
5.6.100.0000.07321.02
5.6.90.0030.08720.96
5.6.80.0070.06320.41
5.5.350.4200.04320.39
5.5.340.0070.08717.89
5.5.330.0100.05320.23
5.5.320.0270.03720.29
5.5.310.0430.06720.32
5.5.300.0070.08317.95
5.5.290.0070.07317.96
5.5.280.0170.06020.68
5.5.270.0130.07320.83
5.5.260.0000.07720.75
5.5.250.0170.08720.58
5.5.240.0170.07720.22
5.4.450.0000.05719.43
5.4.440.0030.07319.13
5.4.430.0000.05319.41
5.4.420.0000.08719.25
5.4.410.0100.04319.43
5.4.400.0070.07719.06
5.4.390.0030.07718.94
5.4.380.0070.07718.93
5.4.370.0070.04319.10
5.4.360.0030.09719.08
5.4.350.0130.06719.24
5.4.340.0100.04019.13
5.4.320.0000.04719.16
5.4.310.0030.08018.80
5.4.300.0070.04019.13
5.4.290.0000.05319.13
5.4.280.0130.03719.08
5.4.270.0130.06718.77
5.4.260.0000.07718.95
5.4.250.0030.06019.07
5.4.240.0000.06318.93
5.4.230.0000.05719.08
5.4.220.0000.08019.09
5.4.210.0100.03719.09
5.4.200.0000.05018.88
5.4.190.0000.04319.23
5.4.180.0000.07719.23
5.4.170.0000.06719.07
5.4.160.0100.06719.07
5.4.150.0000.05019.06
5.4.140.0000.07716.42
5.4.130.0070.07016.26
5.4.120.0100.07016.26
5.4.110.0070.06316.06
5.4.100.0030.05316.46
5.4.90.0130.03316.06
5.4.80.0030.04316.05
5.4.70.0030.06316.48
5.4.60.0030.05716.46
5.4.50.0070.07016.39
5.4.40.0000.07016.40
5.4.30.0070.05316.31
5.4.20.0030.04716.46
5.4.10.0000.04716.20
5.4.00.0130.05015.68
5.3.290.0030.06714.68
5.3.280.0070.04714.45
5.3.270.0030.08014.51
5.3.260.0070.04314.62
5.3.250.0030.03714.54
5.3.240.0030.04714.43
5.3.230.0100.04314.43
5.3.220.0070.07014.40
5.3.210.0170.03714.47
5.3.200.0000.07014.41
5.3.190.0030.04014.51
5.3.180.0030.07314.46
5.3.170.0030.06714.42
5.3.160.0030.05714.47
5.3.150.0070.06714.42
5.3.140.0130.05014.46
5.3.130.0100.04014.42
5.3.120.0070.04314.39
5.3.110.0070.06314.48
5.3.100.0030.08314.24
5.3.90.0070.07014.24
5.3.80.0030.04314.24
5.3.70.0030.07014.24
5.3.60.0000.08014.24
5.3.50.0070.07314.24
5.3.40.0000.06314.24
5.3.30.0000.06714.24
5.3.20.0030.07014.24
5.3.10.0030.05014.24
5.3.00.0000.07714.24
5.2.170.0030.02714.24
5.2.160.0030.05014.24
5.2.150.0030.02714.24
5.2.140.0000.03014.24
5.2.130.0070.05314.24
5.2.120.0030.05314.24
5.2.110.0030.02714.24
5.2.100.0030.06314.24
5.2.90.0030.06314.24
5.2.80.0100.05714.24
5.2.70.0000.06014.24
5.2.60.0000.06314.24
5.2.50.0000.04014.24
5.2.40.0030.03314.24
5.2.30.0070.05714.24
5.2.20.0030.06314.24
5.2.10.0070.05714.24
5.2.00.0000.04014.24
5.1.60.0030.02714.24
5.1.50.0070.04014.24
5.1.40.0030.04714.24
5.1.30.0000.02714.24
5.1.20.0000.03014.24
5.1.10.0030.02314.24
5.1.00.0070.04014.24
5.0.50.0000.04314.24
5.0.40.0000.04014.24
5.0.30.0000.06014.24
5.0.20.0030.02714.24
5.0.10.0000.04314.24
5.0.00.0030.04314.24
4.4.90.0000.02714.24
4.4.80.0030.03714.24
4.4.70.0000.04014.24
4.4.60.0030.02714.24
4.4.50.0000.02714.24
4.4.40.0070.03714.24
4.4.30.0000.02714.24
4.4.20.0070.01714.24
4.4.10.0030.01714.24
4.4.00.0030.02714.24
4.3.110.0030.02014.24
4.3.100.0000.02314.24
4.3.90.0030.02314.24
4.3.80.0000.05314.24
4.3.70.0030.03314.24
4.3.60.0030.02014.24
4.3.50.0000.02314.24
4.3.40.0000.05314.24
4.3.30.0000.04014.24
4.3.20.0030.04014.24
4.3.10.0000.03314.24
4.3.00.0030.03014.24

preferences:
40.64 ms | 401 KiB | 5 Q