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(1 - $deltaCS * 100 / $deltaCI, 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.10.0040.01514.70
7.4.00.0120.00314.90
7.3.130.0110.00714.91
7.3.120.0050.01314.96
7.3.110.0070.01214.85
7.3.100.0080.00914.97
7.3.90.0080.00814.66
7.3.80.0020.01114.86
7.3.70.0050.01014.84
7.3.60.0070.00714.70
7.3.50.0070.00614.88
7.3.40.0050.01014.85
7.3.30.0050.01014.74
7.3.20.0030.00616.74
7.3.10.0050.01016.77
7.3.00.0050.01216.68
7.2.260.0100.01015.23
7.2.250.0060.01215.12
7.2.240.0090.00715.08
7.2.230.0090.00815.17
7.2.220.0030.01315.06
7.2.210.0070.00715.10
7.2.200.0070.00915.14
7.2.190.0050.01015.09
7.2.180.0070.00515.18
7.2.170.0060.00915.16
7.2.160.0000.01215.11
7.2.150.0070.00916.79
7.2.140.0040.00916.85
7.2.130.0030.01116.83
7.2.120.0100.00616.98
7.2.110.0010.01416.82
7.2.100.0090.00616.93
7.2.90.0100.00516.91
7.2.80.0090.00616.86
7.2.70.0090.00716.80
7.2.60.0030.01116.93
7.2.50.0090.00816.95
7.2.40.0060.00816.84
7.2.30.0050.01217.07
7.2.20.0070.00916.77
7.2.10.0040.01316.86
7.2.00.0090.00417.57
7.1.330.0060.01015.99
7.1.320.0100.00615.75
7.1.310.0070.00715.77
7.1.300.0030.01315.81
7.1.290.0040.01015.68
7.1.280.0090.00515.70
7.1.270.0040.00915.80
7.1.260.0060.00915.67
7.1.250.0080.00815.89
7.1.240.0030.01115.78
7.1.230.0060.00815.71
7.1.220.0040.01015.85
7.1.210.0080.00815.70
7.1.200.0050.01015.77
7.1.190.0070.00815.78
7.1.180.0070.00815.76
7.1.170.0030.01315.64
7.1.160.0040.00815.67
7.1.150.0090.00415.85
7.1.140.0050.01115.88
7.1.130.0060.00515.78
7.1.120.0070.00915.59
7.1.110.0030.01015.95
7.1.100.0070.00916.02
7.1.90.0040.01015.90
7.1.80.0070.00715.86
7.1.70.0050.01316.29
7.1.60.0050.01117.21
7.1.50.0130.00516.10
7.1.40.0040.00615.90
7.1.30.0060.00915.71
7.1.20.0050.01115.60
7.1.10.0060.00615.61
7.1.00.0030.03217.96
7.0.330.0030.00915.52
7.0.320.0060.00615.46
7.0.310.0080.00715.41
7.0.300.0070.00515.47
7.0.290.0070.00515.46
7.0.280.0040.00715.43
7.0.270.0030.01115.48
7.0.260.0020.01415.37
7.0.250.0080.00615.45
7.0.240.0080.00515.38
7.0.230.0100.00715.55
7.0.220.0030.01215.60
7.0.210.0070.00715.42
7.0.200.0080.00915.83
7.0.190.0020.01115.46
7.0.180.0070.00915.18
7.0.170.0060.01015.39
7.0.160.0090.00515.37
7.0.150.0040.00915.40
7.0.140.0070.02917.65
7.0.130.0000.01115.54
7.0.120.0030.01115.57
7.0.110.0060.00815.51
7.0.100.0060.00615.50
7.0.90.0050.00815.48
7.0.80.0080.00815.23
7.0.70.0080.00815.42
7.0.60.0040.02016.97
7.0.50.0030.03216.25
7.0.40.0060.03315.62
7.0.30.0160.03115.73
7.0.20.0160.02815.69
7.0.10.0120.03415.68
7.0.00.0060.02115.77
5.6.400.0080.01014.64
5.6.390.0060.01114.29
5.6.380.0030.01414.32
5.6.370.0050.00914.43
5.6.360.0080.00714.27
5.6.350.0060.01014.30
5.6.340.0030.01314.46
5.6.330.0090.00614.31
5.6.320.0060.00814.28
5.6.310.0050.01014.52
5.6.300.0090.00714.38
5.6.290.0060.01014.63
5.6.280.0060.02816.56
5.6.270.0020.01414.56
5.6.260.0080.00914.54
5.6.250.0050.01214.39
5.6.240.0100.00514.25
5.6.230.0060.00614.46
5.6.220.0070.00714.29
5.6.210.0090.03216.40
5.6.200.0120.03115.62
5.6.190.0050.03216.42
5.6.180.1210.02116.40
5.6.170.0140.03116.31
5.6.160.0110.03016.36
5.6.150.0070.03215.61
5.6.140.0010.02315.49
5.6.130.0050.03715.64
5.6.120.0050.02116.52
5.6.110.0070.03516.56
5.6.100.0140.02316.48
5.6.90.0020.02316.49
5.6.80.0090.02816.20
5.6.70.1510.02016.26
5.6.60.0030.01014.36
5.6.50.0060.00714.24
5.6.40.0050.01414.17
5.6.30.0060.01114.29
5.6.20.0080.00714.50
5.6.10.0050.01114.20
5.6.00.0070.00614.29
5.5.380.0060.00814.13
5.5.370.0080.00614.44
5.5.360.0060.01014.12
5.5.350.0080.02716.16
5.5.340.0070.03215.36
5.5.330.0070.01816.35
5.5.320.0130.03016.18
5.5.310.0150.03116.36
5.5.300.0070.03015.51
5.5.290.0070.02915.47
5.5.280.0080.01916.51
5.5.270.0090.02216.54
5.5.260.0050.02816.53
5.5.250.0120.02716.38
5.5.240.0050.03416.15
5.5.230.0110.00614.14
5.5.220.0050.01014.32
5.5.210.0060.00914.27
5.5.200.0050.01214.29
5.5.190.0070.00914.10
5.5.180.0050.00814.39
5.5.170.0050.01214.22
5.5.160.0040.00814.14
5.5.150.0030.01014.08
5.5.140.0030.00813.99
5.5.130.0130.00514.07
5.5.120.0080.00514.35
5.5.110.0080.00714.37
5.5.100.0080.00713.98
5.5.90.0050.01014.21
5.5.80.0090.00614.13
5.5.70.0090.00714.31
5.5.60.0030.00914.11
5.5.50.0030.01213.91
5.5.40.0060.00714.21
5.5.30.0120.00514.29
5.5.20.0000.01414.09
5.5.10.0050.00914.14
5.5.00.0030.01114.18
5.4.450.0110.02214.22
5.4.440.0110.02214.22
5.4.430.0110.01714.22
5.4.420.0050.02614.13
5.4.410.0030.02814.23
5.4.400.0330.00313.85
5.4.390.0500.00713.80
5.4.380.0110.02513.86
5.4.370.0290.02313.74
5.4.360.0220.02613.72
5.4.350.0300.02313.80
5.4.340.0300.02213.93
5.4.330.0060.00711.51
5.4.320.0060.01611.77
5.4.310.0060.02111.82
5.4.300.0050.02111.75
5.4.290.0060.02111.77
5.4.280.0060.01611.81
5.4.270.0080.01511.77
5.4.260.0110.01814.04
5.4.250.0090.02213.94
5.4.240.0080.02114.01
5.4.230.0070.02413.85
5.4.220.0040.02613.88
5.4.210.0080.02214.04
5.4.200.0070.02213.93
5.4.190.0070.02514.03
5.4.180.0040.02413.91
5.4.170.0080.01813.91
5.4.160.0040.02513.85
5.4.150.0060.02313.95
5.4.140.0050.02413.07
5.4.130.0030.02413.06
5.4.120.0040.02912.99
5.4.110.0020.02613.08
5.4.100.0080.02813.10
5.4.90.0060.02113.02
5.4.80.0030.03113.10
5.4.70.0060.02013.11
5.4.60.0030.02113.12
5.4.50.0060.02613.15
5.4.40.0030.02413.07
5.4.30.0080.02713.08
5.4.20.0050.03113.14
5.4.10.0090.02713.14
5.4.00.0080.02212.85
5.3.290.0070.01811.81
5.3.280.0070.02712.42
5.3.270.0050.02212.42
5.3.260.0060.02912.40
5.3.250.0040.02312.33
5.3.240.0070.02412.28
5.3.230.0050.02412.22
5.3.220.0060.02012.28
5.3.210.0070.02412.37
5.3.200.0020.03312.25
5.3.190.0020.02412.22
5.3.180.0050.02812.25
5.3.170.0040.02312.44
5.3.160.0020.02812.26
5.3.150.0080.02112.27
5.3.140.0040.02612.36
5.3.130.0030.02912.31
5.3.120.0040.02412.34
5.3.110.0000.03312.21
5.3.100.0030.02612.16
5.3.90.0070.02012.20
5.3.80.0050.02212.04
5.3.70.0060.03312.08
5.3.60.0050.02712.19
5.3.50.0010.02412.04
5.3.40.0060.02312.09
5.3.30.0070.02812.12
5.3.20.0060.02212.02
5.3.10.0070.02611.91
5.3.00.0030.02911.92
5.2.170.0070.04011.29
5.2.160.0070.03711.37
5.2.150.0030.04311.29
5.2.140.0070.06311.10
5.2.130.0030.04311.14
5.2.120.0000.04311.25
5.2.110.0030.05711.19
5.2.100.0000.06011.14
5.2.90.0130.04711.19
5.2.80.0000.04711.09
5.2.70.0170.04311.13
5.2.60.0070.04010.95
5.2.50.0130.03711.11
5.2.40.0030.04310.91
5.2.30.0030.04311.11
5.2.20.0070.03710.92
5.2.10.0130.05010.82
5.2.00.0070.04310.75
5.1.60.0100.02710.18
5.1.50.0030.0409.96
5.1.40.0000.04310.15
5.1.30.0030.03710.40
5.1.20.0070.04710.42
5.1.10.0030.03710.09
5.1.00.0030.03710.25
5.0.50.0030.0308.88
5.0.40.0030.0438.64
5.0.30.0030.0478.55
5.0.20.0070.0238.28
5.0.10.0070.0238.27
5.0.00.0070.0408.23
4.4.90.0000.0277.49
4.4.80.0000.0307.49
4.4.70.0030.0207.49
4.4.60.0030.0207.49
4.4.50.0030.0207.49
4.4.40.0070.0437.49
4.4.30.0070.0177.49
4.4.20.0000.0237.49
4.4.10.0070.0177.49
4.4.00.0100.0277.49
4.3.110.0000.0277.49
4.3.100.0000.0307.49
4.3.90.0070.0207.49
4.3.80.0030.0407.49
4.3.70.0030.0307.49
4.3.60.0070.0237.49
4.3.50.0030.0277.49
4.3.40.0100.0337.49
4.3.30.0070.0207.49
4.3.20.0030.0207.49
4.3.10.0000.0237.49
4.3.00.0030.0208.20

preferences:
41.04 ms | 401 KiB | 5 Q