3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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";
Output for 7.1.0
case sensitive: 0.06 case insensitive: 0.19 case sensitive gain: 322.62%
Output for 7.0.14
case sensitive: 0.07 case insensitive: 0.24 case sensitive gain: 322.26%
Output for 7.0.6
case sensitive: 0.03 case insensitive: 0.1 case sensitive gain: 338.46%
Output for 7.0.5
case sensitive: 0.03 case insensitive: 0.11 case sensitive gain: 319.57%
Output for 7.0.4
case sensitive: 0.03 case insensitive: 0.11 case sensitive gain: 322.38%
Output for 7.0.2 - 7.0.3
case sensitive: 0.05 case insensitive: 0.16 case sensitive gain: 338.58%
Output for 7.0.1
case sensitive: 0.06 case insensitive: 0.21 case sensitive gain: 357.37%
Output for 7.0.0
case sensitive: 0.05 case insensitive: 0.16 case sensitive gain: 325.37%
Output for hhvm-3.12.0
case sensitive: 0.11 case insensitive: 0.11 case sensitive gain: 105.47%
Output for hhvm-3.10.0
case sensitive: 0.12 case insensitive: 0.12 case sensitive gain: 102.63%
Output for 5.6.28
case sensitive: 0.25 case insensitive: 0.37 case sensitive gain: 146.71%
Output for 5.6.21
case sensitive: 0.17 case insensitive: 0.24 case sensitive gain: 145.25%
Output for 5.6.20
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 149.29%
Output for 5.6.19
case sensitive: 0.19 case insensitive: 0.27 case sensitive gain: 144.57%
Output for 5.6.18
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 151.3%
Output for 5.6.17
case sensitive: 0.18 case insensitive: 0.27 case sensitive gain: 150.74%
Output for 5.6.16
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 143.06%
Output for 5.6.15
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 149.28%
Output for 5.4.22, 5.6.14
case sensitive: 0.12 case insensitive: 0.19 case sensitive gain: 158.92%
Output for 5.6.13
case sensitive: 0.19 case insensitive: 0.28 case sensitive gain: 150.69%
Output for 5.6.12
case sensitive: 0.17 case insensitive: 0.23 case sensitive gain: 139.02%
Output for 5.6.11
case sensitive: 0.16 case insensitive: 0.26 case sensitive gain: 155.2%
Output for 5.6.10
case sensitive: 0.16 case insensitive: 0.29 case sensitive gain: 180.85%
Output for 5.6.9
case sensitive: 0.11 case insensitive: 0.31 case sensitive gain: 281.51%
Output for 5.6.8
case sensitive: 0.18 case insensitive: 0.26 case sensitive gain: 148.99%
Output for 5.6.7
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 150.91%
Output for 5.5.35
case sensitive: 0.19 case insensitive: 0.28 case sensitive gain: 150.13%
Output for 5.5.34
case sensitive: 0.15 case insensitive: 0.27 case sensitive gain: 178.48%
Output for 5.5.33
case sensitive: 0.16 case insensitive: 0.25 case sensitive gain: 155.59%
Output for 5.5.32
case sensitive: 0.14 case insensitive: 0.21 case sensitive gain: 150.96%
Output for 5.5.31
case sensitive: 0.2 case insensitive: 0.26 case sensitive gain: 135.16%
Output for 5.5.30
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 152.19%
Output for 5.5.29
case sensitive: 0.18 case insensitive: 0.27 case sensitive gain: 153.28%
Output for 5.5.28
case sensitive: 0.17 case insensitive: 0.25 case sensitive gain: 144.79%
Output for 5.5.27
case sensitive: 0.12 case insensitive: 0.17 case sensitive gain: 142.74%
Output for 5.5.26
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 150.42%
Output for 5.5.25
case sensitive: 0.19 case insensitive: 0.28 case sensitive gain: 148.03%
Output for 5.5.24
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 143.75%
Output for 5.4.45
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 152.15%
Output for 5.4.44
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 152.61%
Output for 5.4.43
case sensitive: 0.33 case insensitive: 0.54 case sensitive gain: 164.81%
Output for 5.4.42
case sensitive: 0.22 case insensitive: 0.29 case sensitive gain: 130.75%
Output for 5.4.41
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 153.74%
Output for 5.4.40
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 150.15%
Output for 5.4.39
case sensitive: 0.19 case insensitive: 0.39 case sensitive gain: 204.72%
Output for 5.4.38
case sensitive: 0.2 case insensitive: 0.29 case sensitive gain: 146.47%
Output for 5.4.37
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 148.9%
Output for 5.4.36
case sensitive: 0.19 case insensitive: 0.24 case sensitive gain: 130.64%
Output for 5.4.35
case sensitive: 0.18 case insensitive: 0.27 case sensitive gain: 150.4%
Output for 5.4.34
case sensitive: 0.16 case insensitive: 0.28 case sensitive gain: 170.47%
Output for 5.4.32
case sensitive: 0.12 case insensitive: 0.19 case sensitive gain: 158.45%
Output for 5.4.31
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 141.96%
Output for 5.4.30
case sensitive: 0.12 case insensitive: 0.2 case sensitive gain: 164.41%
Output for 5.4.29
case sensitive: 0.13 case insensitive: 0.24 case sensitive gain: 177.58%
Output for 5.4.28
case sensitive: 0.25 case insensitive: 0.37 case sensitive gain: 146.63%
Output for 5.4.27
case sensitive: 0.13 case insensitive: 0.18 case sensitive gain: 140.14%
Output for 5.4.26
case sensitive: 0.14 case insensitive: 0.22 case sensitive gain: 158.72%
Output for 5.4.25
case sensitive: 0.16 case insensitive: 0.25 case sensitive gain: 163%
Output for 5.4.24
case sensitive: 0.14 case insensitive: 0.19 case sensitive gain: 140.7%
Output for 5.4.23
case sensitive: 0.14 case insensitive: 0.19 case sensitive gain: 133.56%
Output for 5.4.21
case sensitive: 0.14 case insensitive: 0.19 case sensitive gain: 136.38%
Output for 5.4.20
case sensitive: 0.12 case insensitive: 0.21 case sensitive gain: 168.41%
Output for 5.4.19
case sensitive: 0.16 case insensitive: 0.21 case sensitive gain: 128.76%
Output for 5.4.18
case sensitive: 0.18 case insensitive: 0.21 case sensitive gain: 114.44%
Output for 5.4.17
case sensitive: 0.15 case insensitive: 0.29 case sensitive gain: 185.14%
Output for 5.4.16
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 146.94%
Output for 5.4.15
case sensitive: 0.12 case insensitive: 0.19 case sensitive gain: 155.77%
Output for 5.4.14
case sensitive: 0.12 case insensitive: 0.19 case sensitive gain: 157.99%
Output for 5.4.13
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 144.74%
Output for 5.4.12
case sensitive: 0.14 case insensitive: 0.23 case sensitive gain: 158.39%
Output for 5.4.11
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 143.32%
Output for 5.4.10
case sensitive: 0.13 case insensitive: 0.19 case sensitive gain: 143.59%
Output for 5.4.9
case sensitive: 0.13 case insensitive: 0.24 case sensitive gain: 188.18%
Output for 5.4.8
case sensitive: 0.14 case insensitive: 0.18 case sensitive gain: 131.05%
Output for 5.4.7
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 153.07%
Output for 5.4.6
case sensitive: 0.18 case insensitive: 0.22 case sensitive gain: 123.44%
Output for 5.4.5
case sensitive: 0.14 case insensitive: 0.21 case sensitive gain: 144.37%
Output for 5.4.4
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 159.1%
Output for 5.4.3
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 155.92%
Output for 5.4.2
case sensitive: 0.14 case insensitive: 0.21 case sensitive gain: 150.26%
Output for 5.4.1
case sensitive: 0.15 case insensitive: 0.2 case sensitive gain: 133.65%
Output for 5.4.0
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 162.12%
Output for 5.3.29
case sensitive: 0.15 case insensitive: 0.27 case sensitive gain: 179.91%
Output for 5.3.28
case sensitive: 0.15 case insensitive: 0.21 case sensitive gain: 140.7%
Output for 5.3.27
case sensitive: 0.16 case insensitive: 0.21 case sensitive gain: 131.11%
Output for 5.3.26
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 146.37%
Output for 5.3.25
case sensitive: 0.15 case insensitive: 0.2 case sensitive gain: 135.29%
Output for 5.3.24
case sensitive: 0.17 case insensitive: 0.27 case sensitive gain: 151.5%
Output for 5.3.23
case sensitive: 0.17 case insensitive: 0.25 case sensitive gain: 145.3%
Output for 5.3.22
case sensitive: 0.19 case insensitive: 0.26 case sensitive gain: 136.49%
Output for 5.3.21
case sensitive: 0.19 case insensitive: 0.25 case sensitive gain: 131.79%
Output for 5.3.20
case sensitive: 0.16 case insensitive: 0.25 case sensitive gain: 154.12%
Output for 5.3.19
case sensitive: 0.17 case insensitive: 0.21 case sensitive gain: 125.25%
Output for 5.3.18
case sensitive: 0.24 case insensitive: 0.26 case sensitive gain: 109.11%
Output for 5.3.17
case sensitive: 0.15 case insensitive: 0.21 case sensitive gain: 138.93%
Output for 5.3.16
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 144.15%
Output for 5.3.15
case sensitive: 0.18 case insensitive: 0.21 case sensitive gain: 116.41%
Output for 5.3.14
case sensitive: 0.16 case insensitive: 0.33 case sensitive gain: 209.63%
Output for 5.3.13
case sensitive: 0.2 case insensitive: 0.23 case sensitive gain: 116.79%
Output for 5.3.12
case sensitive: 0.18 case insensitive: 0.23 case sensitive gain: 130.63%
Output for 5.3.11
case sensitive: 0.17 case insensitive: 0.21 case sensitive gain: 120.8%
Output for 5.3.10
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 146.32%
Output for 5.3.9
case sensitive: 0.15 case insensitive: 0.25 case sensitive gain: 162.38%
Output for 5.3.8
case sensitive: 0.2 case insensitive: 0.24 case sensitive gain: 122.55%
Output for 5.3.7
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 155.08%
Output for 5.3.6
case sensitive: 0.15 case insensitive: 0.23 case sensitive gain: 147.85%
Output for 5.3.5
case sensitive: 0.18 case insensitive: 0.22 case sensitive gain: 126.38%
Output for 5.3.4
case sensitive: 0.16 case insensitive: 0.21 case sensitive gain: 137.17%
Output for 5.3.3
case sensitive: 0.24 case insensitive: 0.29 case sensitive gain: 120.8%
Output for 5.3.2
case sensitive: 0.16 case insensitive: 0.21 case sensitive gain: 129.54%
Output for 5.3.1
case sensitive: 0.21 case insensitive: 0.2 case sensitive gain: 97.72%
Output for 5.3.0
case sensitive: 0.15 case insensitive: 0.2 case sensitive gain: 132.14%
Output for 5.2.17
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 141.76%
Output for 5.2.16
case sensitive: 0.15 case insensitive: 0.23 case sensitive gain: 154%
Output for 5.2.15
case sensitive: 0.16 case insensitive: 0.26 case sensitive gain: 160.55%
Output for 5.2.14
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 137.21%
Output for 5.2.13
case sensitive: 0.19 case insensitive: 0.24 case sensitive gain: 124.81%
Output for 5.2.12
case sensitive: 0.18 case insensitive: 0.25 case sensitive gain: 140.32%
Output for 5.2.11
case sensitive: 0.17 case insensitive: 0.23 case sensitive gain: 140.17%
Output for 5.2.10
case sensitive: 0.16 case insensitive: 0.26 case sensitive gain: 167.43%
Output for 5.2.9
case sensitive: 0.15 case insensitive: 0.28 case sensitive gain: 184.54%
Output for 5.2.8
case sensitive: 0.17 case insensitive: 0.24 case sensitive gain: 140.43%
Output for 5.2.7
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 145.06%
Output for 5.2.6
case sensitive: 0.2 case insensitive: 0.23 case sensitive gain: 118.98%
Output for 5.2.5
case sensitive: 0.2 case insensitive: 0.25 case sensitive gain: 125.18%
Output for 5.2.4
case sensitive: 0.16 case insensitive: 0.3 case sensitive gain: 187.48%
Output for 5.2.3
case sensitive: 0.15 case insensitive: 0.28 case sensitive gain: 189.63%
Output for 5.2.2
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 145.38%
Output for 5.2.1
case sensitive: 0.16 case insensitive: 0.26 case sensitive gain: 163.2%
Output for 5.2.0
case sensitive: 0.22 case insensitive: 0.27 case sensitive gain: 123.95%
Output for 5.1.6
case sensitive: 0.14 case insensitive: 0.23 case sensitive gain: 161.5%
Output for 5.1.5
case sensitive: 0.15 case insensitive: 0.26 case sensitive gain: 172.48%
Output for 5.1.4
case sensitive: 0.2 case insensitive: 0.24 case sensitive gain: 120.68%
Output for 5.1.3
case sensitive: 0.19 case insensitive: 0.22 case sensitive gain: 116.71%
Output for 5.1.2
case sensitive: 0.16 case insensitive: 0.22 case sensitive gain: 133.43%
Output for 5.1.1
case sensitive: 0.14 case insensitive: 0.24 case sensitive gain: 169.73%
Output for 5.1.0
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 148.72%
Output for 5.0.5
case sensitive: 0.35 case insensitive: 0.39 case sensitive gain: 113.06%
Output for 5.0.4
case sensitive: 0.38 case insensitive: 0.41 case sensitive gain: 108.77%
Output for 5.0.3
case sensitive: 0.37 case insensitive: 0.45 case sensitive gain: 121.11%
Output for 5.0.2
case sensitive: 0.33 case insensitive: 0.62 case sensitive gain: 187.31%
Output for 5.0.1
case sensitive: 0.33 case insensitive: 0.41 case sensitive gain: 123.12%
Output for 5.0.0
case sensitive: 0.3 case insensitive: 0.37 case sensitive gain: 125.36%
Output for 4.3.0 - 4.4.9
Skipped