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 "ratio: ", round($deltaCS * 100 / $deltaCI, 2), "%\n";
Output for 7.1.0
case sensitive: -0.06 case insensitive: -0.18 ratio: 31.49%
Output for 7.0.14
case sensitive: 0.08 case insensitive: 0.24 ratio: 31.56%
Output for 7.0.10
case sensitive: 0.04 case insensitive: 0.13 ratio: 31.63%
Output for 7.0.9
case sensitive: 0.04 case insensitive: 0.16 ratio: 27.57%
Output for 7.0.8
case sensitive: 0.05 case insensitive: 0.11 ratio: 47.29%
Output for 7.0.7
case sensitive: 0.03 case insensitive: 0.1 ratio: 29.55%
Output for 7.0.6
case sensitive: 0.03 case insensitive: 0.11 ratio: 30.42%
Output for 7.0.5
case sensitive: 0.04 case insensitive: 0.13 ratio: 30.58%
Output for 7.0.4
case sensitive: 0.03 case insensitive: 0.11 ratio: 29.91%
Output for 7.0.3
case sensitive: 0.04 case insensitive: 0.1 ratio: 33.41%
Output for 7.0.2
case sensitive: 0.05 case insensitive: 0.16 ratio: 33.04%
Output for 7.0.1
case sensitive: 0.03 case insensitive: 0.11 ratio: 30.43%
Output for 7.0.0
case sensitive: 0.03 case insensitive: 0.08 ratio: 31.74%
Output for hhvm-3.12.0
case sensitive: 0.15 case insensitive: 0.16 ratio: 93.71%
Output for hhvm-3.10.0
case sensitive: 0.26 case insensitive: 0.22 ratio: 118.2%
Output for 5.6.28
case sensitive: 0.26 case insensitive: 0.37 ratio: 68.96%
Output for 5.6.25
case sensitive: 0.12 case insensitive: 0.19 ratio: 65.57%
Output for 5.6.24
case sensitive: 0.18 case insensitive: 0.2 ratio: 93.92%
Output for 5.6.23
case sensitive: 0.11 case insensitive: 0.18 ratio: 63.78%
Output for 5.6.22
case sensitive: 0.13 case insensitive: 0.2 ratio: 62.63%
Output for 5.6.21
case sensitive: 0.17 case insensitive: 0.26 ratio: 65.27%
Output for 5.6.20
case sensitive: 0.17 case insensitive: 0.25 ratio: 68.17%
Output for 5.6.19
case sensitive: 0.13 case insensitive: 0.18 ratio: 70.91%
Output for 5.6.18
case sensitive: 0.12 case insensitive: 0.18 ratio: 66.32%
Output for 5.6.17
case sensitive: 0.13 case insensitive: 0.21 ratio: 64.39%
Output for 5.6.16
case sensitive: 0.14 case insensitive: 0.21 ratio: 64.57%
Output for 5.6.15
case sensitive: 0.17 case insensitive: 0.24 ratio: 68.24%
Output for 5.6.14
case sensitive: 0.13 case insensitive: 0.19 ratio: 67.62%
Output for 5.6.13
case sensitive: 0.12 case insensitive: 0.17 ratio: 67.81%
Output for 5.6.12
case sensitive: 0.12 case insensitive: 0.17 ratio: 68.01%
Output for 5.6.11
case sensitive: 0.1 case insensitive: 0.18 ratio: 54.27%
Output for 5.6.10
case sensitive: 0.11 case insensitive: 0.18 ratio: 64.18%
Output for 5.6.9
case sensitive: 0.13 case insensitive: 0.17 ratio: 73.64%
Output for 5.6.8
case sensitive: 0.16 case insensitive: 0.22 ratio: 73.62%
Output for 5.6.7
case sensitive: 0.12 case insensitive: 0.19 ratio: 62.9%
Output for 5.6.6
case sensitive: 0.13 case insensitive: 0.2 ratio: 65.24%
Output for 5.6.5
case sensitive: 0.15 case insensitive: 0.14 ratio: 106.39%
Output for 5.6.4
case sensitive: 0.13 case insensitive: 0.19 ratio: 68.04%
Output for 5.6.3
case sensitive: 0.11 case insensitive: 0.17 ratio: 66.95%
Output for 5.6.2
case sensitive: 0.12 case insensitive: 0.17 ratio: 67.12%
Output for 5.6.1
case sensitive: 0.13 case insensitive: 0.19 ratio: 67.38%
Output for 5.4.36, 5.6.0
case sensitive: 0.12 case insensitive: 0.17 ratio: 67.31%
Output for 5.5.38
case sensitive: 0.12 case insensitive: 0.18 ratio: 65.76%
Output for 5.5.37
case sensitive: 0.16 case insensitive: 0.27 ratio: 58.6%
Output for 5.5.36
case sensitive: 0.1 case insensitive: 0.2 ratio: 50.84%
Output for 5.5.35
case sensitive: 0.12 case insensitive: 0.18 ratio: 66.17%
Output for 5.5.34
case sensitive: 0.16 case insensitive: 0.25 ratio: 63.31%
Output for 5.5.33
case sensitive: 0.14 case insensitive: 0.21 ratio: 67.5%
Output for 5.5.32
case sensitive: 0.13 case insensitive: 0.19 ratio: 65.12%
Output for 5.5.31
case sensitive: 0.13 case insensitive: 0.2 ratio: 64%
Output for 5.5.30
case sensitive: 0.12 case insensitive: 0.18 ratio: 67.19%
Output for 5.5.29
case sensitive: 0.15 case insensitive: 0.24 ratio: 64.29%
Output for 5.5.28
case sensitive: 0.13 case insensitive: 0.18 ratio: 69.33%
Output for 5.5.27
case sensitive: 0.13 case insensitive: 0.18 ratio: 68.97%
Output for 5.5.26
case sensitive: 0.15 case insensitive: 0.23 ratio: 65.74%
Output for 5.5.25
case sensitive: 0.21 case insensitive: 0.31 ratio: 66.49%
Output for 5.5.24
case sensitive: 0.12 case insensitive: 0.17 ratio: 68.42%
Output for 5.5.23
case sensitive: 0.12 case insensitive: 0.17 ratio: 68.18%
Output for 5.5.22
case sensitive: 0.2 case insensitive: 0.16 ratio: 130.69%
Output for 5.5.21
case sensitive: 0.12 case insensitive: 0.2 ratio: 59.51%
Output for 5.5.20
case sensitive: 0.16 case insensitive: 0.24 ratio: 68.41%
Output for 5.5.19
case sensitive: 0.12 case insensitive: 0.18 ratio: 67.34%
Output for 5.5.18
case sensitive: 0.12 case insensitive: 0.17 ratio: 69.67%
Output for 5.5.16
case sensitive: 0.14 case insensitive: 0.16 ratio: 84.25%
Output for 5.5.15
case sensitive: 0.12 case insensitive: 0.17 ratio: 69.35%
Output for 5.5.14
case sensitive: 0.12 case insensitive: 0.18 ratio: 69.61%
Output for 5.5.13
case sensitive: 0.14 case insensitive: 0.29 ratio: 48.1%
Output for 5.5.12
case sensitive: 0.12 case insensitive: 0.18 ratio: 68.91%
Output for 5.5.11
case sensitive: 0.12 case insensitive: 0.17 ratio: 69.77%
Output for 5.5.10
case sensitive: 0.32 case insensitive: 0.47 ratio: 68.43%
Output for 5.5.9
case sensitive: 0.17 case insensitive: 0.26 ratio: 65.61%
Output for 5.5.8
case sensitive: 0.22 case insensitive: 0.32 ratio: 68.68%
Output for 5.5.7
case sensitive: 0.12 case insensitive: 0.19 ratio: 63.43%
Output for 5.5.6
case sensitive: 0.12 case insensitive: 0.18 ratio: 67.8%
Output for 5.5.5
case sensitive: 0.18 case insensitive: 0.28 ratio: 63.93%
Output for 5.5.4
case sensitive: 0.17 case insensitive: 0.22 ratio: 75.08%
Output for 5.5.3
case sensitive: 0.23 case insensitive: 0.23 ratio: 101.24%
Output for 5.5.2
case sensitive: 0.12 case insensitive: 0.18 ratio: 67.87%
Output for 5.5.1
case sensitive: 0.12 case insensitive: 0.18 ratio: 66%
Output for 5.5.0
case sensitive: 0.1 case insensitive: 0.14 ratio: 68.42%
Output for 5.4.45
case sensitive: 0.11 case insensitive: 0.17 ratio: 65.65%
Output for 5.4.44
case sensitive: 0.27 case insensitive: 0.39 ratio: 67.96%
Output for 5.4.43
case sensitive: 0.11 case insensitive: 0.15 ratio: 72.76%
Output for 5.4.42
case sensitive: 0.13 case insensitive: 0.16 ratio: 82.11%
Output for 5.4.41
case sensitive: 0.11 case insensitive: 0.17 ratio: 64.96%
Output for 5.4.40
case sensitive: 0.14 case insensitive: 0.16 ratio: 89.21%
Output for 5.4.39
case sensitive: 0.13 case insensitive: 0.18 ratio: 68.52%
Output for 5.4.38
case sensitive: 0.16 case insensitive: 0.23 ratio: 67.21%
Output for 5.4.37
case sensitive: 0.15 case insensitive: 0.21 ratio: 69.54%
Output for 5.4.35
case sensitive: 0.1 case insensitive: 0.23 ratio: 42.27%
Output for 5.4.34
case sensitive: 0.11 case insensitive: 0.17 ratio: 64.33%
Output for 5.4.32
case sensitive: 0.13 case insensitive: 0.19 ratio: 68.61%
Output for 5.4.31
case sensitive: 0.19 case insensitive: 0.28 ratio: 66.39%
Output for 5.4.30
case sensitive: 0.11 case insensitive: 0.17 ratio: 68.29%
Output for 5.4.29
case sensitive: 0.13 case insensitive: 0.14 ratio: 88.59%
Output for 5.4.28
case sensitive: 0.17 case insensitive: 0.26 ratio: 66.01%
Output for 5.4.27
case sensitive: 0.12 case insensitive: 0.19 ratio: 64.37%
Output for 5.4.26
case sensitive: 0.11 case insensitive: 0.17 ratio: 65.55%
Output for 5.4.25
case sensitive: 0.18 case insensitive: 0.22 ratio: 83.46%
Output for 5.4.24
case sensitive: 0.18 case insensitive: 0.28 ratio: 65.98%
Output for 5.4.23
case sensitive: 0.28 case insensitive: 0.4 ratio: 69.32%
Output for 5.4.22
case sensitive: 0.12 case insensitive: 0.18 ratio: 67.36%
Output for 5.4.21
case sensitive: 0.15 case insensitive: 0.23 ratio: 64.65%
Output for 5.4.20
case sensitive: 0.15 case insensitive: 0.19 ratio: 77.26%
Output for 5.4.19
case sensitive: 0.11 case insensitive: 0.17 ratio: 67.56%
Output for 5.4.18
case sensitive: 0.28 case insensitive: 0.38 ratio: 74.03%
Output for 5.4.17
case sensitive: 0.12 case insensitive: 0.17 ratio: 67.63%
Output for 5.4.16
case sensitive: 0.12 case insensitive: 0.2 ratio: 61.02%
Output for 5.4.15
case sensitive: 0.1 case insensitive: 0.15 ratio: 66.18%
Output for 5.4.14
case sensitive: 0.1 case insensitive: 0.14 ratio: 67.83%
Output for 5.4.13
case sensitive: 0.09 case insensitive: 0.22 ratio: 43.93%
Output for 5.4.12
case sensitive: 0.09 case insensitive: 0.14 ratio: 66.89%
Output for 5.4.11
case sensitive: 0.1 case insensitive: 0.14 ratio: 71.33%
Output for 5.4.10
case sensitive: 0.1 case insensitive: 0.14 ratio: 69.13%
Output for 5.4.2, 5.4.9
case sensitive: 0.1 case insensitive: 0.14 ratio: 67%
Output for 5.4.8
case sensitive: 0.1 case insensitive: 0.14 ratio: 66.72%
Output for 5.4.7
case sensitive: 0.1 case insensitive: 0.14 ratio: 69.57%
Output for 5.4.6
case sensitive: 0.1 case insensitive: 0.15 ratio: 66.77%
Output for 5.4.5
case sensitive: 0.09 case insensitive: 0.14 ratio: 66.28%
Output for 5.4.0, 5.4.4
case sensitive: 0.1 case insensitive: 0.14 ratio: 67.17%
Output for 5.4.1, 5.4.3
case sensitive: 0.1 case insensitive: 0.14 ratio: 68.19%
Output for 5.3.29
case sensitive: 0.22 case insensitive: 0.38 ratio: 57.88%
Output for 5.3.28
case sensitive: 0.16 case insensitive: 0.27 ratio: 59.84%
Output for 5.3.3, 5.3.21, 5.3.27
case sensitive: 0.12 case insensitive: 0.21 ratio: 60.47%
Output for 5.3.26
case sensitive: 0.12 case insensitive: 0.22 ratio: 58.09%
Output for 5.3.25
case sensitive: 0.14 case insensitive: 0.23 ratio: 60.73%
Output for 5.3.24
case sensitive: 0.12 case insensitive: 0.2 ratio: 59.23%
Output for 5.3.23
case sensitive: 0.12 case insensitive: 0.21 ratio: 57.46%
Output for 5.3.22
case sensitive: 0.13 case insensitive: 0.22 ratio: 58.5%
Output for 5.3.20
case sensitive: 0.12 case insensitive: 0.21 ratio: 60.37%
Output for 5.3.19
case sensitive: 0.13 case insensitive: 0.21 ratio: 61.98%
Output for 5.3.18
case sensitive: 0.2 case insensitive: 0.22 ratio: 90.44%
Output for 5.3.17
case sensitive: 0.14 case insensitive: 0.23 ratio: 60.69%
Output for 5.3.16
case sensitive: 0.13 case insensitive: 0.21 ratio: 61.3%
Output for 5.3.15
case sensitive: 0.15 case insensitive: 0.23 ratio: 65.66%
Output for 5.3.14
case sensitive: 0.13 case insensitive: 0.21 ratio: 58.97%
Output for 5.3.13
case sensitive: 0.13 case insensitive: 0.27 ratio: 47%
Output for 5.3.12
case sensitive: 0.13 case insensitive: 0.21 ratio: 60.94%
Output for 5.3.5, 5.3.11
case sensitive: 0.13 case insensitive: 0.21 ratio: 61.41%
Output for 5.3.10
case sensitive: 0.13 case insensitive: 0.22 ratio: 59.19%
Output for 5.3.9
case sensitive: 0.24 case insensitive: 0.3 ratio: 78.42%
Output for 5.3.8
case sensitive: 0.12 case insensitive: 0.21 ratio: 57.91%
Output for 5.3.7
case sensitive: 0.12 case insensitive: 0.22 ratio: 56.32%
Output for 5.3.6
case sensitive: 0.13 case insensitive: 0.21 ratio: 60.68%
Output for 5.3.4
case sensitive: 0.13 case insensitive: 0.21 ratio: 61.69%
Output for 5.3.2
case sensitive: 0.13 case insensitive: 0.21 ratio: 61.4%
Output for 5.3.1
case sensitive: 0.12 case insensitive: 0.21 ratio: 60.65%
Output for 5.3.0
case sensitive: 0.17 case insensitive: 0.29 ratio: 58.83%
Output for 5.2.17
case sensitive: 0.27 case insensitive: 0.43 ratio: 62.16%
Output for 5.2.16
case sensitive: 0.12 case insensitive: 0.22 ratio: 57.14%
Output for 5.2.15
case sensitive: 0.27 case insensitive: 0.44 ratio: 62.96%
Output for 5.2.14
case sensitive: 0.27 case insensitive: 0.42 ratio: 64.77%
Output for 5.2.13
case sensitive: 0.13 case insensitive: 0.22 ratio: 56.42%
Output for 5.2.12
case sensitive: 0.14 case insensitive: 0.25 ratio: 55.89%
Output for 5.2.11
case sensitive: 0.2 case insensitive: 0.28 ratio: 71.3%
Output for 5.2.10
case sensitive: 0.25 case insensitive: 0.46 ratio: 55.65%
Output for 5.2.9
case sensitive: 0.13 case insensitive: 0.23 ratio: 58.37%
Output for 5.2.8
case sensitive: 0.21 case insensitive: 0.38 ratio: 54.53%
Output for 5.2.7
case sensitive: 0.17 case insensitive: 0.3 ratio: 55.61%
Output for 5.2.6
case sensitive: 0.25 case insensitive: 0.45 ratio: 55.54%
Output for 5.2.5
case sensitive: 0.15 case insensitive: 0.26 ratio: 55.49%
Output for 5.2.4
case sensitive: 0.22 case insensitive: 0.41 ratio: 54.27%
Output for 5.2.3
case sensitive: 0.16 case insensitive: 0.26 ratio: 62.01%
Output for 5.2.2
case sensitive: 0.16 case insensitive: 0.29 ratio: 54.6%
Output for 5.2.1
case sensitive: 0.14 case insensitive: 0.27 ratio: 52.77%
Output for 5.2.0
case sensitive: 0.2 case insensitive: 0.37 ratio: 54.38%
Output for 5.1.6
case sensitive: 0.13 case insensitive: 0.25 ratio: 53.38%
Output for 5.1.5
case sensitive: 0.13 case insensitive: 0.25 ratio: 54.25%
Output for 5.1.4
case sensitive: 0.14 case insensitive: 0.25 ratio: 57.09%
Output for 5.1.3
case sensitive: 0.14 case insensitive: 0.26 ratio: 54.11%
Output for 5.1.2
case sensitive: 0.15 case insensitive: 0.29 ratio: 51.73%
Output for 5.1.1
case sensitive: 0.13 case insensitive: 0.25 ratio: 54.67%
Output for 5.1.0
case sensitive: 0.11 case insensitive: 0.3 ratio: 36.07%
Output for 5.0.5
case sensitive: 0.46 case insensitive: 0.63 ratio: 72.34%
Output for 5.0.4
case sensitive: 0.3 case insensitive: 0.44 ratio: 67.68%
Output for 5.0.3
case sensitive: 0.26 case insensitive: 0.42 ratio: 63.29%
Output for 5.0.2
case sensitive: 0.26 case insensitive: 0.38 ratio: 69.61%
Output for 5.0.1
case sensitive: 0.25 case insensitive: 0.39 ratio: 65.29%
Output for 5.0.0
case sensitive: 0.25 case insensitive: 0.38 ratio: 65.86%
Output for 4.3.0 - 4.4.9
Skipped