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 - 100, 2), "%\n";
Output for 7.1.0
case sensitive: 0.06 case insensitive: 0.19 case sensitive gain: 217.97%
Output for 7.0.14
case sensitive: 0.08 case insensitive: 0.24 case sensitive gain: 211.76%
Output for 7.0.6
case sensitive: 0.05 case insensitive: 0.18 case sensitive gain: 244.86%
Output for 7.0.5
case sensitive: 0.05 case insensitive: 0.15 case sensitive gain: 203.74%
Output for 7.0.4
case sensitive: 0.03 case insensitive: 0.12 case sensitive gain: 255.07%
Output for 7.0.3
case sensitive: 0.05 case insensitive: 0.14 case sensitive gain: 184.11%
Output for 7.0.2
case sensitive: 0.04 case insensitive: 0.15 case sensitive gain: 247.73%
Output for 7.0.1
case sensitive: 0.05 case insensitive: 0.15 case sensitive gain: 223.83%
Output for 7.0.0
case sensitive: 0.05 case insensitive: 0.15 case sensitive gain: 219.4%
Output for hhvm-3.12.0
case sensitive: 0.12 case insensitive: 0.13 case sensitive gain: 5.96%
Output for hhvm-3.10.0
case sensitive: 0.12 case insensitive: 0.12 case sensitive gain: 1.55%
Output for 5.6.28
case sensitive: 0.25 case insensitive: 0.39 case sensitive gain: 59.53%
Output for 5.6.21
case sensitive: 0.18 case insensitive: 0.28 case sensitive gain: 51.04%
Output for 5.6.20
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 47.9%
Output for 5.6.19
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 45.78%
Output for 5.6.18
case sensitive: 0.11 case insensitive: 0.17 case sensitive gain: 53.73%
Output for 5.6.17
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 50.5%
Output for 5.6.16
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 48.03%
Output for 5.6.15
case sensitive: 0.19 case insensitive: 0.29 case sensitive gain: 47.97%
Output for 5.6.14
case sensitive: 0.11 case insensitive: 0.19 case sensitive gain: 68.33%
Output for 5.6.13
case sensitive: 0.17 case insensitive: 0.27 case sensitive gain: 58.22%
Output for 5.6.12
case sensitive: 0.3 case insensitive: 0.45 case sensitive gain: 51.61%
Output for 5.6.11
case sensitive: 0.11 case insensitive: 0.17 case sensitive gain: 51.88%
Output for 5.6.10
case sensitive: 0.19 case insensitive: 0.27 case sensitive gain: 41.62%
Output for 5.6.9
case sensitive: 0.18 case insensitive: 0.27 case sensitive gain: 49.13%
Output for 5.6.8
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 46.99%
Output for 5.5.35
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 50.31%
Output for 5.5.34
case sensitive: 0.18 case insensitive: 0.29 case sensitive gain: 56.94%
Output for 5.5.33
case sensitive: 0.11 case insensitive: 0.18 case sensitive gain: 57.59%
Output for 5.5.32
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 42.66%
Output for 5.5.31
case sensitive: 0.11 case insensitive: 0.18 case sensitive gain: 55.81%
Output for 5.5.30
case sensitive: 0.18 case insensitive: 0.27 case sensitive gain: 50.92%
Output for 5.5.29
case sensitive: 0.16 case insensitive: 0.25 case sensitive gain: 52.47%
Output for 5.5.28
case sensitive: 0.2 case insensitive: 0.3 case sensitive gain: 48.48%
Output for 5.5.27
case sensitive: 0.17 case insensitive: 0.27 case sensitive gain: 59.69%
Output for 5.5.26
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 51.6%
Output for 5.5.25
case sensitive: 0.2 case insensitive: 0.39 case sensitive gain: 94.52%
Output for 5.5.24
case sensitive: 0.19 case insensitive: 0.27 case sensitive gain: 45.36%
Output for 5.4.45
case sensitive: 0.19 case insensitive: 0.26 case sensitive gain: 38.52%
Output for 5.4.44
case sensitive: 0.18 case insensitive: 0.25 case sensitive gain: 41.72%
Output for 5.4.43
case sensitive: 0.2 case insensitive: 0.29 case sensitive gain: 42.52%
Output for 5.4.42
case sensitive: 0.23 case insensitive: 0.34 case sensitive gain: 47.5%
Output for 5.4.41
case sensitive: 0.17 case insensitive: 0.26 case sensitive gain: 47.96%
Output for 5.4.40
case sensitive: 0.23 case insensitive: 0.39 case sensitive gain: 69.37%
Output for 5.4.39
case sensitive: 0.11 case insensitive: 0.14 case sensitive gain: 33.11%
Output for 5.4.38
case sensitive: 0.32 case insensitive: 0.49 case sensitive gain: 51.43%
Output for 5.4.37
case sensitive: 0.16 case insensitive: 0.39 case sensitive gain: 138.09%
Output for 5.4.36
case sensitive: 0.31 case insensitive: 0.47 case sensitive gain: 51.63%
Output for 5.4.35
case sensitive: 0.42 case insensitive: 0.65 case sensitive gain: 52.53%
Output for 5.4.34
case sensitive: 0.27 case insensitive: 0.44 case sensitive gain: 62.14%
Output for 5.4.32
case sensitive: 0.12 case insensitive: 0.22 case sensitive gain: 86.31%
Output for 5.4.31
case sensitive: 0.14 case insensitive: 0.24 case sensitive gain: 70.87%
Output for 5.4.30
case sensitive: 0.16 case insensitive: 0.19 case sensitive gain: 16.67%
Output for 5.4.29
case sensitive: 0.14 case insensitive: 0.21 case sensitive gain: 44.9%
Output for 5.4.28
case sensitive: 0.13 case insensitive: 0.23 case sensitive gain: 79.27%
Output for 5.4.27
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 46.68%
Output for 5.4.26
case sensitive: 0.12 case insensitive: 0.18 case sensitive gain: 49.61%
Output for 5.4.25
case sensitive: 0.15 case insensitive: 0.24 case sensitive gain: 59.72%
Output for 5.4.24
case sensitive: 0.12 case insensitive: 0.19 case sensitive gain: 59.72%
Output for 5.4.23
case sensitive: 0.13 case insensitive: 0.19 case sensitive gain: 51.4%
Output for 5.4.22
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 41.4%
Output for 5.4.21
case sensitive: 0.12 case insensitive: 0.22 case sensitive gain: 73.9%
Output for 5.4.20
case sensitive: 0.12 case insensitive: 0.2 case sensitive gain: 69.14%
Output for 5.4.19
case sensitive: 0.15 case insensitive: 0.21 case sensitive gain: 36.38%
Output for 5.4.18
case sensitive: 0.16 case insensitive: 0.26 case sensitive gain: 57.83%
Output for 5.4.17
case sensitive: 0.14 case insensitive: 0.4 case sensitive gain: 185.47%
Output for 5.4.16
case sensitive: 0.15 case insensitive: 0.19 case sensitive gain: 24.01%
Output for 5.4.15
case sensitive: 0.15 case insensitive: 0.2 case sensitive gain: 34.9%
Output for 5.4.14
case sensitive: 0.13 case insensitive: 0.21 case sensitive gain: 64.57%
Output for 5.3.20, 5.4.13
case sensitive: 0.16 case insensitive: 0.21 case sensitive gain: 33.28%
Output for 5.4.12
case sensitive: 0.13 case insensitive: 0.27 case sensitive gain: 114.71%
Output for 5.4.11
case sensitive: 0.16 case insensitive: 0.2 case sensitive gain: 30.09%
Output for 5.4.10
case sensitive: 0.13 case insensitive: 0.19 case sensitive gain: 44.92%
Output for 5.4.9
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 53.6%
Output for 5.4.8
case sensitive: 0.13 case insensitive: 0.21 case sensitive gain: 67.23%
Output for 5.4.7
case sensitive: 0.15 case insensitive: 0.2 case sensitive gain: 34.82%
Output for 5.4.6
case sensitive: 0.19 case insensitive: 0.21 case sensitive gain: 10.2%
Output for 5.4.5
case sensitive: 0.15 case insensitive: 0.21 case sensitive gain: 38.24%
Output for 5.4.4
case sensitive: 0.13 case insensitive: 0.19 case sensitive gain: 44.44%
Output for 5.4.3
case sensitive: 0.13 case insensitive: 0.22 case sensitive gain: 72.74%
Output for 5.4.2
case sensitive: 0.13 case insensitive: 0.25 case sensitive gain: 93.9%
Output for 5.4.1
case sensitive: 0.14 case insensitive: 0.2 case sensitive gain: 39.5%
Output for 5.4.0
case sensitive: 0.13 case insensitive: 0.2 case sensitive gain: 60.11%
Output for 5.3.29
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 45.95%
Output for 5.3.28
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 47.72%
Output for 5.3.27
case sensitive: 0.15 case insensitive: 0.21 case sensitive gain: 35.41%
Output for 5.3.26
case sensitive: 0.15 case insensitive: 0.39 case sensitive gain: 156.04%
Output for 5.3.25
case sensitive: 0.39 case insensitive: 0.42 case sensitive gain: 9.21%
Output for 5.3.24
case sensitive: 0.2 case insensitive: 0.26 case sensitive gain: 29.38%
Output for 5.3.23
case sensitive: 0.21 case insensitive: 0.3 case sensitive gain: 45.59%
Output for 5.3.22
case sensitive: 0.18 case insensitive: 0.28 case sensitive gain: 59.12%
Output for 5.3.21
case sensitive: 0.18 case insensitive: 0.26 case sensitive gain: 43.73%
Output for 5.3.19
case sensitive: 0.16 case insensitive: 0.22 case sensitive gain: 34.02%
Output for 5.3.18
case sensitive: 0.18 case insensitive: 0.22 case sensitive gain: 23.19%
Output for 5.3.17
case sensitive: 0.18 case insensitive: 0.24 case sensitive gain: 32.02%
Output for 5.3.16
case sensitive: 0.17 case insensitive: 0.24 case sensitive gain: 40.76%
Output for 5.3.15
case sensitive: 0.31 case insensitive: 0.46 case sensitive gain: 47.52%
Output for 5.3.14
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 50.46%
Output for 5.3.13
case sensitive: 0.16 case insensitive: 0.22 case sensitive gain: 32.65%
Output for 5.3.12
case sensitive: 0.16 case insensitive: 0.22 case sensitive gain: 38.01%
Output for 5.3.11
case sensitive: 0.17 case insensitive: 0.22 case sensitive gain: 30.01%
Output for 5.3.10
case sensitive: 0.31 case insensitive: 0.39 case sensitive gain: 25.13%
Output for 5.3.9
case sensitive: 0.16 case insensitive: 0.27 case sensitive gain: 75.88%
Output for 5.3.8
case sensitive: 0.19 case insensitive: 0.25 case sensitive gain: 33.33%
Output for 5.3.7
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 45.58%
Output for 5.3.6
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 46.85%
Output for 5.3.5
case sensitive: 0.23 case insensitive: 0.24 case sensitive gain: 5.78%
Output for 5.3.4
case sensitive: 0.17 case insensitive: 0.24 case sensitive gain: 46.77%
Output for 5.3.3
case sensitive: 0.22 case insensitive: 0.35 case sensitive gain: 59.59%
Output for 5.3.2
case sensitive: 0.17 case insensitive: 0.21 case sensitive gain: 21.12%
Output for 5.3.1
case sensitive: 0.22 case insensitive: 0.24 case sensitive gain: 6.68%
Output for 5.3.0
case sensitive: 0.17 case insensitive: 0.23 case sensitive gain: 28.61%
Output for 5.2.17
case sensitive: 0.18 case insensitive: 0.25 case sensitive gain: 42.23%
Output for 5.2.16
case sensitive: 0.16 case insensitive: 0.28 case sensitive gain: 71.53%
Output for 5.2.15
case sensitive: 0.16 case insensitive: 0.23 case sensitive gain: 48.25%
Output for 5.2.14
case sensitive: 0.15 case insensitive: 0.23 case sensitive gain: 50.47%
Output for 5.2.13
case sensitive: 0.18 case insensitive: 0.24 case sensitive gain: 33.03%
Output for 5.2.12
case sensitive: 0.15 case insensitive: 0.24 case sensitive gain: 63.86%
Output for 5.2.11
case sensitive: 0.21 case insensitive: 0.34 case sensitive gain: 64.11%
Output for 5.2.10
case sensitive: 0.15 case insensitive: 0.29 case sensitive gain: 89.97%
Output for 5.2.9
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 46.45%
Output for 5.2.8
case sensitive: 0.16 case insensitive: 0.24 case sensitive gain: 43.06%
Output for 5.2.7
case sensitive: 0.19 case insensitive: 0.24 case sensitive gain: 24.72%
Output for 5.2.6
case sensitive: 0.16 case insensitive: 0.32 case sensitive gain: 97.64%
Output for 5.2.5
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 47.83%
Output for 5.2.4
case sensitive: 0.16 case insensitive: 0.25 case sensitive gain: 54.85%
Output for 5.2.3
case sensitive: 0.18 case insensitive: 0.24 case sensitive gain: 34.69%
Output for 5.2.2
case sensitive: 0.15 case insensitive: 0.24 case sensitive gain: 57.46%
Output for 5.2.1
case sensitive: 0.15 case insensitive: 0.23 case sensitive gain: 54.88%
Output for 5.2.0
case sensitive: 0.23 case insensitive: 0.31 case sensitive gain: 35.46%
Output for 5.1.6
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 45.18%
Output for 5.1.5
case sensitive: 0.14 case insensitive: 0.22 case sensitive gain: 61.23%
Output for 5.1.4
case sensitive: 0.15 case insensitive: 0.25 case sensitive gain: 66.18%
Output for 5.1.3
case sensitive: 0.14 case insensitive: 0.23 case sensitive gain: 60.83%
Output for 5.1.2
case sensitive: 0.23 case insensitive: 0.35 case sensitive gain: 52.62%
Output for 5.1.1
case sensitive: 0.31 case insensitive: 0.47 case sensitive gain: 53.46%
Output for 5.1.0
case sensitive: 0.15 case insensitive: 0.22 case sensitive gain: 54.08%
Output for 5.0.5
case sensitive: 0.35 case insensitive: 0.5 case sensitive gain: 44.7%
Output for 5.0.4
case sensitive: 0.34 case insensitive: 0.53 case sensitive gain: 57.89%
Output for 5.0.3
case sensitive: 0.41 case insensitive: 0.44 case sensitive gain: 8.38%
Output for 5.0.2
case sensitive: 0.39 case insensitive: 0.44 case sensitive gain: 14.06%
Output for 5.0.1
case sensitive: 0.31 case insensitive: 0.51 case sensitive gain: 63.91%
Output for 5.0.0
case sensitive: 0.34 case insensitive: 0.43 case sensitive gain: 28.8%
Output for 4.3.0 - 4.4.9
Skipped