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 - $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.3.00.0060.01016.56
7.2.130.0060.01017.05
7.2.120.0060.00916.93
7.2.110.0030.01016.82
7.2.100.0040.00716.83
7.2.90.0070.00716.79
7.2.80.0090.00617.09
7.2.70.0000.01516.84
7.2.60.0030.00716.92
7.2.50.0060.00917.09
7.2.40.0040.01116.64
7.2.30.0110.00316.80
7.2.20.0100.00716.98
7.2.10.0030.00916.87
7.2.00.0020.01318.16
7.1.250.0090.00615.67
7.1.240.0060.00915.71
7.1.230.0000.01015.55
7.1.220.0000.01415.75
7.1.210.0090.00415.71
7.1.200.0000.00915.96
7.1.190.0060.00315.63
7.1.180.0130.00315.63
7.1.170.0030.01015.77
7.1.160.0070.00715.82
7.1.150.0050.00515.64
7.1.140.0080.00815.64
7.1.130.0040.00515.57
7.1.120.0030.00615.75
7.1.110.0080.00815.79
7.1.100.0030.00715.71
7.1.90.0040.00815.92
7.1.80.0030.00915.90
7.1.70.0070.00516.42
7.1.60.0080.00816.44
7.1.50.0040.00816.40
7.1.40.0000.00915.97
7.1.30.0000.01215.60
7.1.20.0030.00615.75
7.1.10.0030.01015.57
7.1.00.0020.04719.15
7.0.330.0060.00915.43
7.0.320.0150.00015.49
7.0.310.0070.00715.50
7.0.300.0070.00715.23
7.0.290.0000.01115.39
7.0.280.0100.00715.33
7.0.270.0050.00515.39
7.0.260.0040.00715.63
7.0.250.0080.00615.46
7.0.240.0070.00415.53
7.0.230.0060.00615.52
7.0.220.0100.00315.52
7.0.210.0060.00615.50
7.0.200.0000.01216.13
7.0.190.0030.01315.07
7.0.180.0070.00315.31
7.0.170.0040.00815.13
7.0.160.0120.00015.54
7.0.150.0040.01415.22
7.0.140.0030.04018.69
7.0.130.0070.01115.52
7.0.120.0020.04018.88
7.0.110.0040.00715.39
7.0.100.0040.01115.36
7.0.90.0090.00615.42
7.0.80.0090.00615.52
7.0.70.0070.00715.68
7.0.60.0030.04217.74
7.0.50.0050.04416.68
7.0.40.0060.02415.54
7.0.30.0080.03515.65
7.0.20.0100.04115.40
7.0.10.0030.04015.63
7.0.00.0030.04215.61
5.6.380.0070.01014.60
5.6.370.0100.00314.21
5.6.360.0090.00614.50
5.6.350.0030.01014.31
5.6.340.0060.00314.14
5.6.330.0050.00514.30
5.6.320.0000.01014.32
5.6.310.0030.00914.36
5.6.300.0070.01014.34
5.6.290.0100.00714.00
5.6.280.0000.01214.41
5.6.270.0120.00314.46
5.6.260.0000.01414.22
5.6.250.0060.00914.43
5.6.240.0090.00614.38
5.6.230.0070.00714.40
5.6.220.0030.01114.24
5.6.210.0050.05017.39
5.6.200.0070.04216.35
5.6.190.0080.04016.24
5.6.180.0070.03216.16
5.6.170.0050.02816.18
5.6.160.0110.02616.24
5.6.150.0080.04016.07
5.6.140.0110.02316.32
5.6.130.0030.03716.18
5.6.120.0050.04616.20
5.6.110.0050.04716.23
5.6.100.0070.04216.38
5.6.90.0090.03216.33
5.6.80.0080.04315.78
5.6.70.0070.03916.04
5.6.60.0060.04515.78
5.6.50.0060.03715.95
5.6.40.0070.03115.92
5.6.30.0060.04515.76
5.6.20.0060.04115.98
5.6.10.0050.03415.94
5.6.00.0050.02815.88
5.5.380.0080.00811.60
5.5.370.0040.01111.60
5.5.360.0030.00911.60
5.5.350.0180.04016.05
5.5.340.0100.03014.77
5.5.330.0020.03214.76
5.5.320.0080.02314.76
5.5.310.0040.04514.80
5.5.300.0060.04114.81
5.5.290.0080.04014.75
5.5.280.0050.02714.81
5.5.270.0030.03714.79
5.5.260.0070.03014.74
5.5.250.0080.04014.70
5.5.240.0030.02814.45
5.5.230.0030.04514.50
5.5.220.0030.04514.46
5.5.210.0050.02514.48
5.5.200.0060.03614.49
5.5.190.0120.02714.44
5.5.180.0100.02314.42
5.5.170.0050.01111.60
5.5.160.0000.04514.50
5.5.150.0110.03714.47
5.5.140.0080.04314.43
5.5.130.0050.04314.46
5.5.120.0080.04014.46
5.5.110.0080.04514.48
5.5.100.0080.03514.38
5.5.90.0070.02514.42
5.5.80.0050.03914.40
5.5.70.0030.03914.36
5.5.60.0050.03514.43
5.5.50.0030.02814.41
5.5.40.0090.03314.38
5.5.30.0030.02814.39
5.5.20.0030.03514.37
5.5.10.0090.03914.38
5.5.00.0070.04414.37
5.4.450.0030.02915.49
5.4.440.0050.04515.56
5.4.430.0070.04315.51
5.4.420.0080.04215.50
5.4.410.0050.03415.39
5.4.400.0110.03715.29
5.4.390.0070.04015.37
5.4.380.0070.03315.32
5.4.370.0020.03015.36
5.4.360.0100.03715.35
5.4.350.0040.02515.37
5.4.340.0020.02915.35
5.4.330.0080.00611.60
5.4.320.0070.02815.32
5.4.310.0050.04415.35
5.4.300.0020.04615.27
5.4.290.0030.04115.32
5.4.280.0040.04615.36
5.4.270.0100.03015.34
5.4.260.0030.04515.36
5.4.250.0050.04615.24
5.4.240.0040.04515.34
5.4.230.0020.02515.37
5.4.220.0110.03515.29
5.4.210.0080.03815.34
5.4.200.0050.04115.29
5.4.190.0070.04415.23
5.4.180.0020.02715.34
5.4.170.0040.02315.29
5.4.160.0020.04215.29
5.4.150.0050.03815.34
5.4.140.0030.04213.97
5.4.130.0050.02613.88
5.4.120.0000.02514.05
5.4.110.0030.04214.01
5.4.100.0070.03914.01
5.4.90.0050.02714.03
5.4.80.0060.04113.96
5.4.70.0050.02714.01
5.4.60.0050.04213.87
5.4.50.0080.03613.98
5.4.40.0080.02913.90
5.4.30.0060.03113.96
5.4.20.0060.04013.87
5.4.10.0020.04414.04
5.4.00.0080.03413.66
5.3.290.0140.03713.14
5.3.280.0110.02613.11
5.3.270.0030.03013.06
5.3.260.0080.03713.09
5.3.250.0110.03313.11
5.3.240.0050.02513.07
5.3.230.0050.02713.13
5.3.220.0080.02613.05
5.3.210.0070.04113.10
5.3.200.0030.04513.05
5.3.190.0050.03713.05
5.3.180.0050.02913.12
5.3.170.0030.03013.03
5.3.160.0080.04313.05
5.3.150.0130.03513.04
5.3.140.0050.03813.07
5.3.130.0030.03313.04
5.3.120.0050.04013.03
5.3.110.0070.02713.06
5.3.100.0080.03112.79
5.3.90.0050.03312.79
5.3.80.0020.04312.85
5.3.70.0030.04312.83
5.3.60.0050.04312.78
5.3.50.0070.04312.76
5.3.40.0030.04312.75
5.3.30.0000.02712.75
5.3.20.0100.03812.62
5.3.10.0020.02712.59
5.3.00.0050.02312.60
5.2.170.0050.03311.36
5.2.160.0050.02511.43
5.2.150.0030.02111.45
5.2.140.0030.02011.45
5.2.130.0070.02211.49
5.2.120.0060.02211.38
5.2.110.0050.02611.36
5.2.100.0020.02211.41
5.2.90.0070.03211.41
5.2.80.0040.03211.30
5.2.70.0020.03611.35
5.2.60.0050.03611.28
5.2.50.0050.03311.29
5.2.40.0020.02511.24
5.2.30.0030.01711.37
5.2.20.0020.02011.23
5.2.10.0020.01911.25
5.2.00.0000.02011.22
5.1.60.0030.01810.85
5.1.50.0030.01510.88
5.1.40.0020.01810.84
5.1.30.0000.01710.96
5.1.20.0030.01611.09
5.1.10.0000.01810.86
5.1.00.0070.01310.92
5.0.50.0020.01410.07
5.0.40.0020.01510.09
5.0.30.0000.0229.90
5.0.20.0030.0129.99
5.0.10.0010.01410.05
5.0.00.0070.0159.91
4.4.90.0040.0089.50
4.4.80.0050.0189.50
4.4.70.0050.0089.50
4.4.60.0030.0089.50
4.4.50.0020.0109.50
4.4.40.0000.0139.50
4.4.30.0020.0109.50
4.4.20.0030.0089.50
4.4.10.0020.0099.50
4.4.00.0020.0149.50
4.3.110.0020.0109.50
4.3.100.0000.0099.50
4.3.90.0020.0099.50
4.3.80.0030.0129.50
4.3.70.0010.0109.50
4.3.60.0000.0129.50
4.3.50.0000.0119.50
4.3.40.0000.0149.50
4.3.30.0000.0109.50
4.3.20.0000.0119.50
4.3.10.0000.0099.50
4.3.00.0020.0089.50

preferences:
35.22 ms | 400 KiB | 5 Q