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($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.2.00.0000.01219.11
7.1.70.0040.00717.17
7.1.60.0140.01019.82
7.1.50.0170.00717.07
7.1.00.0100.07022.37
7.0.200.0070.00516.40
7.0.140.0000.07722.09
7.0.60.0030.04020.00
7.0.50.0100.03317.80
7.0.40.0100.04720.04
7.0.30.0330.08320.33
7.0.20.0270.08020.22
7.0.10.0170.06020.05
7.0.00.0070.08320.20
5.6.280.0030.07721.07
5.6.210.0070.06720.56
5.6.200.0070.04018.22
5.6.190.0130.08320.32
5.6.180.3600.03720.76
5.6.170.0400.07020.35
5.6.160.0030.07320.36
5.6.150.0100.05318.09
5.6.140.0100.04318.11
5.6.130.0200.07318.11
5.6.120.0070.06320.98
5.6.110.0030.09021.02
5.6.100.0200.07721.02
5.6.90.0030.04720.88
5.6.80.0130.07320.48
5.6.70.4170.03320.53
5.5.350.0030.08720.47
5.5.340.0070.06018.02
5.5.330.0100.08320.46
5.5.320.0200.05320.26
5.5.310.0230.07320.35
5.5.300.0070.05717.91
5.5.290.0070.08017.90
5.5.280.0070.07320.80
5.5.270.0100.04020.84
5.5.260.0130.06720.93
5.5.250.0070.08020.59
5.5.240.0100.05020.27
5.4.450.0230.06019.45
5.4.440.0570.05719.10
5.4.430.0170.07319.42
5.4.420.0100.06019.29
5.4.410.0100.05719.41
5.4.400.0800.00018.77
5.4.390.0830.00018.70
5.4.380.0230.06018.61
5.4.370.1030.06018.60
5.4.360.0770.05018.59
5.4.350.0770.05318.51
5.4.340.0600.06018.66
5.4.320.0040.04412.46
5.4.310.0070.04012.46
5.4.300.0040.03912.46
5.4.290.0070.03912.46
5.4.280.0040.04012.36
5.4.270.0070.04212.36
5.4.260.0100.05718.80
5.4.250.0100.05318.94
5.4.240.0170.07018.75
5.4.230.0200.06318.96
5.4.220.0100.06019.02
5.4.210.0100.05718.79
5.4.200.0030.05318.75
5.4.190.0030.05718.85
5.4.180.0030.05719.01
5.4.170.0070.07018.85
5.4.160.0030.05318.85
5.4.150.0070.05718.97
5.4.140.0130.06716.26
5.4.130.0070.07316.27
5.4.120.0070.05316.41
5.4.110.0130.04316.41
5.4.100.0100.05016.43
5.4.90.0030.05316.29
5.4.80.0100.06716.25
5.4.70.0100.05016.39
5.4.60.0100.05016.38
5.4.50.0100.04716.39
5.4.40.0000.05716.51
5.4.30.0030.06016.39
5.4.20.0130.04316.39
5.4.10.0100.05016.38
5.4.00.0100.04715.91
5.3.290.0060.03912.80
5.3.280.0170.04014.67
5.3.270.0170.06014.59
5.3.260.0070.05314.77
5.3.250.0200.04014.70
5.3.240.0100.06314.77
5.3.230.0030.05314.68
5.3.220.0170.06314.66
5.3.210.0130.07014.65
5.3.200.0030.05314.46
5.3.190.0070.07714.63
5.3.180.0030.06014.33
5.3.170.0070.07014.72
5.3.160.0070.05014.72
5.3.150.0000.05714.75
5.3.140.0230.04314.45
5.3.130.0000.06014.33
5.3.120.0100.05014.61
5.3.110.0070.05714.33
5.3.100.0170.04014.23
5.3.90.0100.06314.03
5.3.80.0100.04714.10
5.3.70.0030.07314.18
5.3.60.0000.06013.88
5.3.50.0070.05313.73
5.3.40.0130.06713.95
5.3.30.0100.06313.93
5.3.20.0030.05313.62
5.3.10.0130.04013.52
5.3.00.0030.05313.53
5.2.170.0000.05011.05
5.2.160.0030.04711.29
5.2.150.0030.05711.29
5.2.140.0130.03711.42
5.2.130.0130.03711.13
5.2.120.0070.03711.11
5.2.110.0070.04011.24
5.2.100.0100.03311.25
5.2.90.0030.04311.00
5.2.80.0070.05010.99
5.2.70.0030.04311.32
5.2.60.0030.04311.20
5.2.50.0070.04311.17
5.2.40.0070.03711.15
5.2.30.0100.03711.08
5.2.20.0030.04311.04
5.2.10.0130.03011.05
5.2.00.0000.06310.93
5.1.60.0030.03310.17
5.1.50.0000.0379.98
5.1.40.0030.03310.15
5.1.30.0100.03010.63
5.1.20.0030.03710.41
5.1.10.0030.03710.14
5.1.00.0170.02710.35
5.0.50.0000.0438.72
5.0.40.0030.0308.51
5.0.30.0100.0538.39
5.0.20.0100.0278.39
5.0.10.0070.0408.23
5.0.00.0030.0578.36
4.4.90.0030.0207.49
4.4.80.0030.0277.49
4.4.70.0000.0307.49
4.4.60.0000.0377.49
4.4.50.0130.0207.49
4.4.40.0000.0337.49
4.4.30.0070.0177.49
4.4.20.0030.0207.49
4.4.10.0000.0237.49
4.4.00.0030.0377.49
4.3.110.0030.0207.49
4.3.100.0100.0137.49
4.3.90.0070.0237.49
4.3.80.0130.0337.49
4.3.70.0000.0307.49
4.3.60.0030.0307.49
4.3.50.0070.0207.49
4.3.40.0070.0407.49
4.3.30.0030.0207.49
4.3.20.0000.0237.49
4.3.10.0000.0237.49
4.3.00.0170.0238.20

preferences:
36.3 ms | 401 KiB | 5 Q