3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(version_compare(PHP_VERSION, '5.0') <= 0) { die('Skipped'); } // Setup $class = 'Concrete5_Model_User'; $count = 1000; // Warm up for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } // Test - case sensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { strpos($class, 'Concrete5_Model'); } $deltaCS = microtime(true) - $t0; // Test - case insensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { stripos($class, 'Concrete5_Model'); } $deltaCI = microtime(true) - $t0; echo "case sensitive: ", round($deltaCS * 1000, 2), "\n"; echo "case insensitive: ", round($deltaCI * 1000, 2), "\n"; echo "case sensitive gain: ", round(100 - $deltaCI * 100 / $deltaCS, 2), "%\n";

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.0120.00814.78
7.3.120.0040.01214.79
7.3.110.0110.00714.53
7.3.100.0120.00314.86
7.3.90.0070.01014.87
7.3.80.0000.01414.76
7.3.70.0060.00914.95
7.3.60.0070.00714.81
7.3.50.0090.00614.58
7.3.40.0100.00314.82
7.3.30.0100.00714.66
7.3.20.0030.00616.83
7.3.10.0060.00616.61
7.3.00.0060.00916.69
7.2.250.0030.01315.11
7.2.240.0100.01014.86
7.2.230.0070.01015.26
7.2.220.0060.00914.80
7.2.210.0080.00814.80
7.2.200.0030.01014.96
7.2.190.0040.01415.14
7.2.180.0100.00614.73
7.2.170.0040.01515.11
7.2.160.0040.01415.18
7.2.150.0080.00816.79
7.2.140.0080.00416.96
7.2.130.0040.00816.97
7.2.120.0030.01016.79
7.2.110.0040.00716.64
7.2.100.0040.01117.02
7.2.90.0000.01516.64
7.2.80.0070.01116.94
7.2.70.0060.00916.70
7.2.60.0060.01016.99
7.2.50.0130.00317.07
7.2.40.0000.01516.51
7.2.30.0070.01016.83
7.2.20.0070.01116.71
7.2.10.0060.00917.04
7.2.00.0020.01718.06
7.1.330.0130.00615.75
7.1.320.0070.01015.70
7.1.310.0070.00715.84
7.1.300.0030.01015.72
7.1.290.0090.00615.79
7.1.280.0070.01115.86
7.1.270.0090.00915.72
7.1.260.0100.00715.97
7.1.250.0000.01415.79
7.1.240.0030.00815.57
7.1.230.0090.00615.73
7.1.220.0070.01015.86
7.1.210.0070.00715.55
7.1.200.0090.00615.56
7.1.190.0000.01215.88
7.1.180.0040.01115.74
7.1.170.0040.01115.83
7.1.160.0040.00815.75
7.1.150.0060.00815.61
7.1.140.0060.00615.86
7.1.130.0130.00015.77
7.1.120.0070.01015.54
7.1.110.0110.00315.82
7.1.100.0060.00615.96
7.1.90.0040.01115.95
7.1.80.0120.00615.89
7.1.70.0060.00416.63
7.1.60.0080.01117.79
7.1.50.0060.01416.42
7.1.40.0000.01115.81
7.1.30.0030.01015.73
7.1.20.0030.00915.69
7.1.10.0080.00315.80
7.1.00.0020.05118.96
7.0.330.0060.00615.41
7.0.320.0100.00715.32
7.0.310.0070.00715.37
7.0.300.0030.01015.50
7.0.290.0100.00715.33
7.0.280.0030.01015.28
7.0.270.0000.01415.14
7.0.260.0110.00315.55
7.0.250.0040.01415.32
7.0.240.0090.00615.24
7.0.230.0000.01415.24
7.0.220.0030.01315.39
7.0.210.0060.00915.39
7.0.200.0060.00716.12
7.0.190.0060.00915.29
7.0.180.0030.01315.52
7.0.170.0080.00815.23
7.0.160.0060.00615.56
7.0.150.0060.01215.38
7.0.140.0050.04518.65
7.0.130.0030.01115.32
7.0.120.0060.00615.34
7.0.110.0030.01015.38
7.0.100.0070.00715.28
7.0.90.0040.00415.54
7.0.80.0070.00715.34
7.0.70.0030.01315.53
7.0.60.0070.04317.73
7.0.50.0030.04816.68
7.0.40.0110.04516.61
7.0.30.0200.03716.71
7.0.20.0130.04716.80
7.0.10.0150.04216.74
7.0.00.0050.04916.91
5.6.400.0030.01314.50
5.6.390.0040.01214.35
5.6.380.0040.01514.45
5.6.370.0040.01114.62
5.6.360.0030.01414.55
5.6.350.0040.01214.35
5.6.340.0080.01114.10
5.6.330.0070.00314.36
5.6.320.0070.00714.52
5.6.310.0100.00314.19
5.6.300.0030.00914.06
5.6.290.0030.01314.63
5.6.280.0030.01314.27
5.6.270.0060.00614.38
5.6.260.0090.00014.43
5.6.250.0000.01014.34
5.6.240.0000.01114.20
5.6.230.0060.00614.10
5.6.220.0030.00714.54
5.6.210.0110.04117.48
5.6.200.0100.04116.16
5.6.190.0070.02817.19
5.6.180.1670.02017.40
5.6.170.0130.04217.44
5.6.160.0080.03017.21
5.6.150.0050.04216.27
5.6.140.0070.04216.23
5.6.130.0080.04316.24
5.6.120.0090.04517.55
5.6.110.0050.02517.77
5.6.100.0070.04217.69
5.6.90.0100.04017.58
5.6.80.0100.02017.37
5.6.70.2060.02817.35
5.6.60.0030.01414.16
5.6.50.0060.00914.00
5.6.40.0070.01013.94
5.6.30.0070.01013.94
5.6.20.0060.00913.96
5.6.10.0080.00814.16
5.6.00.0030.01314.25
5.5.380.0030.01714.12
5.5.370.0100.00214.42
5.5.360.0150.00414.02
5.5.350.0060.04917.24
5.5.340.0020.05316.05
5.5.330.0030.03017.29
5.5.320.0180.04217.34
5.5.310.0120.02517.32
5.5.300.0080.02116.26
5.5.290.0020.04716.11
5.5.280.0100.04217.39
5.5.270.0070.02117.45
5.5.260.0040.03517.67
5.5.250.0030.03517.40
5.5.240.0090.03917.06
5.5.230.0060.00913.81
5.5.220.0070.01014.05
5.5.210.0040.01413.97
5.5.200.0080.00814.23
5.5.190.0090.00914.38
5.5.180.0130.00714.38
5.5.170.0070.01014.04
5.5.160.0030.01514.03
5.5.150.0070.00714.02
5.5.140.0080.00314.19
5.5.130.0130.00314.36
5.5.120.0070.00714.41
5.5.110.0090.00614.27
5.5.100.0030.01314.21
5.5.90.0090.00614.31
5.5.80.0060.00314.07
5.5.70.0070.01114.09
5.5.60.0030.01314.20
5.5.50.0070.00714.08
5.5.40.0090.00614.07
5.5.30.0030.01414.22
5.5.20.0040.01414.17
5.5.10.0070.01013.97
5.5.00.0100.00713.72
5.4.450.1420.02215.18
5.4.440.1290.01815.31
5.4.430.1510.02015.21
5.4.420.1530.02315.30
5.4.410.1450.02714.94
5.4.400.1470.02415.08
5.4.390.1470.02514.79
5.4.380.1430.02014.92
5.4.370.1370.02214.92
5.4.360.1500.02015.17
5.4.350.1430.02715.07
5.4.340.1570.02215.06
5.4.330.0060.00611.24
5.4.320.1860.01814.98
5.4.310.1630.02215.17
5.4.300.1620.01714.92
5.4.290.1650.02315.12
5.4.280.1680.02115.01
5.4.270.1500.01614.92
5.4.260.1570.02614.94
5.4.250.1410.02514.96
5.4.240.1570.02515.09
5.4.230.1600.02114.89
5.4.220.1880.02115.20
5.4.210.1790.02414.76
5.4.200.1880.02014.67
5.4.190.1870.02414.92
5.4.180.1700.02715.02
5.4.170.1760.02114.99
5.4.160.1800.02514.79
5.4.150.1920.02315.11
5.4.140.1870.02013.58
5.4.130.1920.02013.63
5.4.120.1770.02313.81
5.4.110.1700.02213.65
5.4.100.1570.02613.76
5.4.90.1710.01813.73
5.4.80.1470.02213.62
5.4.70.1580.02513.59
5.4.60.1550.02213.71
5.4.50.1600.02213.75
5.4.40.1600.02213.56
5.4.30.1620.01813.55
5.4.20.1300.02213.62
5.4.10.1460.02213.78
5.4.00.1630.01813.29
5.3.290.1570.02512.64
5.3.280.1430.02512.52
5.3.270.1560.02312.58
5.3.260.1610.02112.52
5.3.250.1550.02212.57
5.3.240.1450.02212.54
5.3.230.1900.02212.49
5.3.220.1850.02412.43
5.3.210.1830.02312.39
5.3.200.1860.02312.47
5.3.190.1870.02012.43
5.3.180.1830.02312.63
5.3.170.1920.02212.60
5.3.160.1770.02012.53
5.3.150.1600.02112.50
5.3.140.1570.02212.56
5.3.130.1450.02312.61
5.3.120.1540.02412.51
5.3.110.1560.02612.37
5.3.100.1610.02012.22
5.3.90.1660.02112.11
5.3.80.1470.02312.09
5.3.70.1750.02312.14
5.3.60.1580.01812.08
5.3.50.1620.02012.14
5.3.40.1630.02111.99
5.3.30.1520.02212.30
5.3.20.1350.02111.99
5.3.10.1680.02111.90
5.3.00.1580.02411.86
5.2.170.2600.03312.83
5.2.160.2770.03312.83
5.2.150.2700.03012.83
5.2.140.2700.03312.83
5.2.130.2600.03312.83
5.2.120.2330.03312.83
5.2.110.2930.02712.83
5.2.100.3100.03012.83
5.2.90.2830.02712.83
5.2.80.2270.02312.83
5.2.70.2970.02712.83
5.2.60.2770.03012.83
5.2.50.2870.03012.83
5.2.40.2100.03312.83
5.2.30.2300.02712.83
5.2.20.2430.02712.83
5.2.10.2100.03012.83
5.2.00.2230.02712.83
5.1.60.1670.03012.83
5.1.50.2300.02012.83
5.1.40.2200.03012.83
5.1.30.2230.02712.83
5.1.20.2270.02712.83
5.1.10.2130.03012.83
5.1.00.2400.02712.83
5.0.50.1170.02712.83
5.0.40.1430.02712.83
5.0.30.1470.03712.83
5.0.20.1400.02312.83
5.0.10.1170.02312.83
5.0.00.1470.04012.83
4.4.90.1070.01712.83
4.4.80.1470.01712.83
4.4.70.1130.01712.83
4.4.60.1130.01712.83
4.4.50.1000.02012.83
4.4.40.1170.03012.83
4.4.30.1130.01712.83
4.4.20.1030.01312.83
4.4.10.1170.02012.83
4.4.00.1070.02712.83
4.3.110.1130.01012.83
4.3.100.1230.01712.83
4.3.90.1200.02012.83
4.3.80.1170.03012.83
4.3.70.1170.01712.83
4.3.60.1200.01712.83
4.3.50.1230.01312.83
4.3.40.1170.03012.83
4.3.30.0570.02712.83
4.3.20.0600.02312.83
4.3.10.0770.02712.83
4.3.00.0770.02312.83

preferences:
31.34 ms | 401 KiB | 5 Q