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 "ratio: ", round($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.00.0070.00714.95
7.3.120.0070.01314.54
7.3.110.0070.01014.81
7.3.100.0060.01314.88
7.3.90.0000.01614.91
7.3.80.0040.00714.53
7.3.70.0080.00814.92
7.3.60.0030.00614.78
7.3.50.0060.00914.64
7.3.40.0080.00014.81
7.3.30.0000.01814.63
7.3.20.0030.01416.75
7.3.10.0070.00716.77
7.3.00.0030.01016.79
7.2.250.0030.01715.05
7.2.240.0070.01115.09
7.2.230.0060.00915.11
7.2.220.0000.01114.93
7.2.210.0090.00615.18
7.2.200.0100.00615.07
7.2.190.0090.00615.23
7.2.180.0030.01315.12
7.2.170.0060.01215.14
7.2.160.0030.01315.22
7.2.150.0070.01016.63
7.2.140.0070.01016.55
7.2.130.0100.00316.97
7.2.120.0080.00517.02
7.2.110.0000.01316.74
7.2.100.0100.00316.76
7.2.90.0070.00717.11
7.2.80.0000.01316.79
7.2.70.0030.01017.03
7.2.60.0060.00916.72
7.2.50.0090.00616.83
7.2.40.0100.00616.57
7.2.30.0100.00716.96
7.2.20.0080.00816.77
7.2.10.0150.00416.80
7.2.00.0050.00618.16
7.1.330.0060.01316.00
7.1.320.0060.01015.74
7.1.310.0030.01015.89
7.1.300.0000.01415.58
7.1.290.0070.00715.81
7.1.280.0060.01015.80
7.1.270.0120.00615.76
7.1.260.0040.00815.58
7.1.250.0000.01016.02
7.1.240.0000.01015.65
7.1.230.0060.00915.57
7.1.220.0060.00615.93
7.1.210.0040.01215.77
7.1.200.0060.01215.72
7.1.190.0030.01115.58
7.1.180.0070.00715.87
7.1.170.0110.00615.78
7.1.160.0120.00315.71
7.1.150.0090.00615.95
7.1.140.0090.00915.57
7.1.130.0090.00915.51
7.1.120.0030.01415.87
7.1.110.0070.01115.92
7.1.100.0030.01015.75
7.1.90.0080.00315.86
7.1.80.0070.01115.72
7.1.70.0030.01316.48
7.1.60.0050.01217.79
7.1.50.0090.00816.36
7.1.40.0030.01415.93
7.1.30.0070.00715.91
7.1.20.0030.00915.55
7.1.10.0060.00915.70
7.1.00.0070.04019.06
7.0.330.0040.01215.23
7.0.320.0030.01015.41
7.0.310.0060.01015.43
7.0.300.0040.01215.23
7.0.290.0070.01015.40
7.0.280.0070.00715.29
7.0.270.0070.01115.34
7.0.260.0060.00615.19
7.0.250.0040.01415.45
7.0.240.0040.01115.47
7.0.230.0030.01215.63
7.0.220.0060.00915.60
7.0.210.0070.00715.47
7.0.200.0060.00916.07
7.0.190.0070.00715.33
7.0.180.0070.00715.64
7.0.170.0130.00315.46
7.0.160.0060.00615.54
7.0.150.0030.01015.48
7.0.140.0110.03518.80
7.0.130.0000.01215.55
7.0.120.0090.00315.57
7.0.110.0060.01015.31
7.0.100.0190.04017.64
7.0.90.0050.04017.70
7.0.80.0000.03117.64
7.0.70.0030.03017.76
7.0.60.0150.02817.63
7.0.50.0210.03818.06
7.0.40.0090.02216.76
7.0.30.0020.02916.83
7.0.20.0060.02616.85
7.0.10.0060.02816.78
7.0.00.0100.01816.72
5.6.400.0070.01014.54
5.6.390.0090.00614.43
5.6.380.0130.00314.49
5.6.370.0060.01214.00
5.6.360.0040.01114.50
5.6.350.0000.01214.48
5.6.340.0000.01414.44
5.6.330.0030.01214.15
5.6.320.0090.00614.31
5.6.310.0090.00914.24
5.6.300.0060.00614.21
5.6.290.0000.01614.44
5.6.280.0070.04217.80
5.6.270.0070.00314.31
5.6.260.0060.01014.18
5.6.250.0090.03417.54
5.6.240.0100.02317.55
5.6.230.0090.02317.51
5.6.220.0030.03517.49
5.6.210.0160.03017.50
5.6.200.0080.04317.69
5.6.190.0070.02517.58
5.6.180.0030.03617.52
5.6.170.0050.02617.62
5.6.160.0020.03817.68
5.6.150.0070.02417.80
5.6.140.0030.02817.74
5.6.130.0060.02617.79
5.6.120.0080.02317.90
5.6.110.0050.02417.71
5.6.100.0070.02817.81
5.6.90.0050.02717.58
5.6.80.0060.02017.43
5.6.70.0030.03017.38
5.6.60.0090.02517.23
5.6.50.0020.02717.52
5.6.40.0080.02717.17
5.6.30.0050.02417.33
5.6.20.0080.02817.40
5.6.10.0030.02817.40
5.6.00.0070.02517.32
5.5.380.0040.02717.31
5.5.370.0050.02517.25
5.5.360.0060.02417.19
5.5.350.0080.02417.34
5.5.340.0140.02617.39
5.5.330.0050.02717.62
5.5.320.0060.03117.45
5.5.310.0080.02517.40
5.5.300.0050.02617.57
5.5.290.0050.03817.64
5.5.280.0020.02817.61
5.5.270.0030.03317.62
5.5.260.0020.04017.48
5.5.250.0110.03217.43
5.5.240.0020.03117.31
5.5.230.0030.02617.12
5.5.220.0060.02117.04
5.5.210.0030.02717.26
5.5.200.0060.03417.10
5.5.190.0050.02317.17
5.5.180.0020.02617.25
5.5.170.0040.01114.29
5.5.160.0050.02217.05
5.5.150.0070.02217.30
5.5.140.0060.02417.13
5.5.130.0130.02017.14
5.5.120.0070.03017.39
5.5.110.0050.02517.24
5.5.100.0080.04017.24
5.5.90.0030.02617.21
5.5.80.0050.02517.19
5.5.70.0080.02417.07
5.5.60.0020.02716.95
5.5.50.0070.02317.23
5.5.40.0030.02717.15
5.5.30.0050.02217.06
5.5.20.0050.02317.11
5.5.10.0040.02617.25
5.5.00.0030.02217.08
5.4.450.0060.03015.23
5.4.440.0050.02315.20
5.4.430.0050.02415.00
5.4.420.0070.01815.34
5.4.410.0050.02315.17
5.4.400.0000.02514.91
5.4.390.0070.02415.04
5.4.380.0090.03015.13
5.4.370.0000.03814.94
5.4.360.0030.02614.96
5.4.350.0030.02214.97
5.4.340.0070.01815.03
5.4.330.0060.00310.91
5.4.320.0020.03715.00
5.4.310.0080.05314.87
5.4.300.0020.02314.86
5.4.290.0020.02515.08
5.4.280.0040.04115.06
5.4.270.0080.02215.10
5.4.260.0070.02015.02
5.4.250.0010.02314.96
5.4.240.0070.04015.00
5.4.230.0050.02514.71
5.4.220.0030.02714.95
5.4.210.0050.03914.78
5.4.200.0080.02315.00
5.4.190.0040.02414.92
5.4.180.0020.02515.05
5.4.170.0030.02615.01
5.4.160.0080.01814.90
5.4.150.0000.02315.01
5.4.140.0030.02113.66
5.4.130.0020.02013.74
5.4.120.0050.01813.60
5.4.110.0030.01713.69
5.4.100.0050.01613.72
5.4.90.0030.02013.68
5.4.80.0010.01913.64
5.4.70.0030.01913.58
5.4.60.0050.01813.62
5.4.50.0050.01813.68
5.4.40.0050.01813.65
5.4.30.0050.01813.62
5.4.20.0030.02113.58
5.4.10.0020.02113.71
5.4.00.0010.01913.21
5.3.290.0010.04112.60
5.3.280.0030.02512.61
5.3.270.0000.02212.56
5.3.260.0020.02312.55
5.3.250.0050.01812.56
5.3.240.0000.02312.58
5.3.230.0030.01912.52
5.3.220.0050.02012.52
5.3.210.0050.02212.53
5.3.200.0010.02112.54
5.3.190.0030.02012.53
5.3.180.0050.02312.54
5.3.170.0030.01812.59
5.3.160.0060.01612.60
5.3.150.0020.02212.59
5.3.140.0030.02212.53
5.3.130.0040.02012.55
5.3.120.0000.02412.54
5.3.110.0030.01812.53
5.3.100.0020.02212.28
5.3.90.0050.01912.26
5.3.80.0020.02212.25
5.3.70.0050.01912.29
5.3.60.0020.01912.17
5.3.50.0010.02112.26
5.3.40.0030.02012.23
5.3.30.0030.02112.19
5.3.20.0070.01812.11
5.3.10.0020.01812.12
5.3.00.0020.02212.07
5.2.170.0000.03311.04
5.2.160.0000.02711.32
5.2.150.0030.02711.27
5.2.140.0000.02711.13
5.2.130.0000.02711.08
5.2.120.0030.02311.13
5.2.110.0070.02311.09
5.2.100.0030.06311.18
5.2.90.0030.02711.16
5.2.80.0030.04311.25
5.2.70.0030.04711.29
5.2.60.0000.07310.98
5.2.50.0030.03311.21
5.2.40.0070.05711.03
5.2.30.0000.03011.18
5.2.20.0100.02711.17
5.2.10.0000.03310.96
5.2.00.0030.04710.78
5.1.60.0000.02710.10
5.1.50.0030.02310.21
5.1.40.0000.02710.08
5.1.30.0000.02710.57
5.1.20.0030.03710.54
5.1.10.0000.03010.09
5.1.00.0000.02710.17
5.0.50.0070.0208.83
5.0.40.0030.0208.83
5.0.30.0000.0378.83
5.0.20.0000.0238.83
5.0.10.0000.0208.83
5.0.00.0030.0308.83
4.4.90.0030.0278.83
4.4.80.0000.0378.83
4.4.70.0000.0238.83
4.4.60.0030.0208.83
4.4.50.0030.0178.83
4.4.40.0070.0178.83
4.4.30.0000.0178.83
4.4.20.0000.0338.83
4.4.10.0000.0178.83
4.4.00.0000.0278.83
4.3.110.0030.0138.83
4.3.100.0000.0178.83
4.3.90.0070.0108.83
4.3.80.0030.0478.83
4.3.70.0000.0178.83
4.3.60.0030.0208.83
4.3.50.0000.0308.83
4.3.40.0000.0238.83
4.3.30.0100.0208.83
4.3.20.0000.0138.83
4.3.10.0030.0208.83
4.3.00.0000.0178.83

preferences:
39.72 ms | 400 KiB | 5 Q