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 = 10000; // 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), " ms\n"; echo "case insensitive: ", round($deltaCI * 1000, 2), " ms\n"; echo "case sensitive gain: ", round($deltaCI * 100 / $deltaCS - 100, 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.0100.01014.80
7.3.120.0090.01114.98
7.3.110.0060.01315.01
7.3.100.0020.01214.91
7.3.90.0050.01014.83
7.3.80.0090.00914.76
7.3.70.0050.01214.78
7.3.60.0080.01314.84
7.3.50.0070.01014.91
7.3.40.0030.01514.79
7.3.30.0060.01114.77
7.3.20.0060.00916.76
7.3.10.0080.01016.61
7.3.00.0080.01016.49
7.2.250.0070.01314.87
7.2.240.0060.01415.07
7.2.230.0070.00715.20
7.2.220.0050.01415.01
7.2.210.0060.00914.95
7.2.200.0030.01415.14
7.2.190.0080.01014.89
7.2.180.0050.01115.13
7.2.170.0020.01715.22
7.2.160.0100.00614.83
7.2.150.0100.01017.05
7.2.140.0030.01716.62
7.2.130.0070.01116.76
7.2.120.0090.01216.80
7.2.110.0050.01316.52
7.2.100.0080.01016.77
7.2.90.0030.01316.80
7.2.80.0110.01016.61
7.2.70.0080.01216.60
7.2.60.0080.01516.84
7.2.50.0100.01016.45
7.2.40.0100.01016.55
7.2.30.0100.01316.77
7.2.20.0130.01016.57
7.2.10.0120.01016.31
7.2.00.0030.01417.56
7.1.330.0050.01515.67
7.1.320.0070.01315.83
7.1.310.0070.01415.76
7.1.300.0090.01015.75
7.1.290.0080.01215.88
7.1.280.0060.01415.80
7.1.270.0050.01315.86
7.1.260.0050.01415.77
7.1.250.0110.01015.45
7.1.70.0070.01017.00
7.1.60.0030.02419.82
7.1.50.0100.01416.93
7.1.00.0030.09322.32
7.0.200.0100.00316.52
7.0.140.0070.07321.98
7.0.60.0070.08720.00
7.0.50.0030.04317.82
7.0.40.0030.09719.98
7.0.30.0300.08720.30
7.0.20.0400.06720.09
7.0.10.0100.08320.20
7.0.00.0100.07320.04
5.6.280.0030.07721.00
5.6.210.0070.06320.67
5.6.200.0100.05718.17
5.6.190.0030.09720.57
5.6.180.0400.08020.59
5.6.170.0200.07020.59
5.6.160.0070.06320.37
5.6.150.0000.07718.12
5.6.140.0070.05718.21
5.6.130.0030.09318.21
5.6.120.0130.09020.91
5.6.110.0070.07720.89
5.6.100.0130.07721.11
5.6.90.0070.05020.98
5.6.80.0130.07720.54
5.5.350.0270.07320.41
5.5.340.0030.04317.89
5.5.330.0130.03720.19
5.5.320.0400.06320.41
5.5.310.0330.06020.16
5.5.300.0070.05718.01
5.5.290.0200.08017.98
5.5.280.0200.08020.77
5.5.270.0130.08320.75
5.5.260.0130.07720.87
5.5.250.0070.09320.70
5.5.240.0070.07320.37
5.4.450.0130.07319.48
5.4.440.0800.05719.62
5.4.430.0130.06019.25
5.4.420.0170.05319.63
5.4.410.0130.05318.93
5.4.400.0030.06718.77
5.4.390.0130.08318.56
5.4.380.0170.05318.47
5.4.370.1070.05718.78
5.4.360.1000.06018.51
5.4.350.0730.06018.50
5.4.340.0800.05718.66
5.4.320.0070.04212.47
5.4.310.0060.04812.46
5.4.300.0070.04012.46
5.4.290.0050.04312.46
5.4.280.0050.04312.36
5.4.270.0070.04012.36
5.4.260.0100.09019.04
5.4.250.0100.09018.86
5.4.240.0230.06018.98
5.4.230.0130.08018.80
5.4.220.0070.07018.95
5.4.210.0100.06018.95
5.4.200.0070.09319.02
5.4.190.0130.05318.88
5.4.180.0100.06318.95
5.4.170.0070.06318.99
5.4.160.0100.08718.78
5.4.150.0000.07018.75
5.4.140.0100.06016.37
5.4.130.0070.08316.27
5.4.120.0100.05016.24
5.4.110.0030.06016.49
5.4.100.0100.05716.48
5.4.90.0070.08316.27
5.4.80.0030.05716.29
5.4.70.0130.07716.39
5.4.60.0070.06316.38
5.4.50.0070.08316.45
5.4.40.0100.05316.44
5.4.30.0130.05016.32
5.4.20.0170.04716.47
5.4.10.0100.05716.46
5.4.00.0070.06015.71
5.3.290.0090.04812.80
5.3.280.0200.07314.59
5.3.270.0070.06714.52
5.3.260.0070.09714.62
5.3.250.0170.07714.69
5.3.240.0070.06014.70
5.3.230.0100.05714.65
5.3.220.0100.08714.63
5.3.210.0100.09014.33
5.3.200.0100.06314.66
5.3.190.0100.08314.64
5.3.180.0130.07714.61
5.3.170.0070.08714.34
5.3.160.0070.07014.58
5.3.150.0100.09014.58
5.3.140.0130.06714.43
5.3.130.0100.07714.46
5.3.120.0200.04714.62
5.3.110.0100.08714.43
5.3.100.0070.09013.93
5.3.90.0130.08314.10
5.3.80.0070.06714.18
5.3.70.0070.06313.80
5.3.60.0070.08313.86
5.3.50.0070.08313.95
5.3.40.0170.06313.80
5.3.30.0070.09013.96
5.3.20.0000.09013.70
5.3.10.0070.05713.43
5.3.00.0100.06713.54
5.2.170.0100.04711.31
5.2.160.0070.07011.30
5.2.150.0030.07311.15
5.2.140.0100.07311.04
5.2.130.0170.06011.01
5.2.120.0070.05011.23
5.2.110.0070.04711.16
5.2.100.0070.04711.34
5.2.90.0000.07311.19
5.2.80.0070.07711.08
5.2.70.0030.06711.25
5.2.60.0030.05311.04
5.2.50.0070.04711.11
5.2.40.0070.04711.15
5.2.30.0000.05310.93
5.2.20.0030.05011.00
5.2.10.0070.06711.17
5.2.00.0070.06710.68
5.1.60.0030.05310.05
5.1.50.0130.05310.14
5.1.40.0070.06010.12
5.1.30.0030.05710.29
5.1.20.0000.05710.45
5.1.10.0030.05710.25
5.1.00.0030.04710.13
5.0.50.0070.0438.77
5.0.40.0000.0678.78
5.0.30.0000.0608.45
5.0.20.0030.0438.29
5.0.10.0070.0608.28
5.0.00.0030.0778.49
4.4.90.0000.0337.00
4.4.80.0100.0207.00
4.4.70.0070.0277.00
4.4.60.0030.0307.00
4.4.50.0000.0237.00
4.4.40.0000.0377.00
4.4.30.0070.0177.00
4.4.20.0030.0237.00
4.4.10.0000.0277.00
4.4.00.0100.0337.00
4.3.110.0070.0207.00
4.3.100.0030.0207.00
4.3.90.0100.0237.00
4.3.80.0070.0377.00
4.3.70.0100.0137.00
4.3.60.0070.0177.00
4.3.50.0000.0337.00
4.3.40.0030.0307.00
4.3.30.0030.0277.00
4.3.20.0070.0206.99
4.3.10.0030.0306.98
4.3.00.0070.0206.81

preferences:
35.49 ms | 400 KiB | 5 Q