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 = 10000; // 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), " ms\n"; echo "case insensitive: ", round($deltaCI * 1000, 2), " ms\n"; echo "case sensitive gain: ", round($deltaCI * 100 / $deltaCS - 100, 2), " %\n";
Output for 7.1.0
case sensitive: 0.99 ms case insensitive: 3.3 ms case sensitive gain: 235.06 %
Output for 7.0.14
case sensitive: 0.77 ms case insensitive: 2.37 ms case sensitive gain: 206.62 %
Output for 7.0.6
case sensitive: 0.47 ms case insensitive: 1.56 ms case sensitive gain: 235.75 %
Output for 7.0.5
case sensitive: 0.33 ms case insensitive: 1.03 ms case sensitive gain: 214.28 %
Output for 7.0.4
case sensitive: 0.48 ms case insensitive: 1.53 ms case sensitive gain: 220.9 %
Output for 7.0.3
case sensitive: 0.89 ms case insensitive: 1.5 ms case sensitive gain: 69.29 %
Output for 7.0.2
case sensitive: 0.42 ms case insensitive: 1.4 ms case sensitive gain: 233.05 %
Output for 7.0.1
case sensitive: 0.5 ms case insensitive: 1.66 ms case sensitive gain: 231.62 %
Output for 7.0.0
case sensitive: 0.48 ms case insensitive: 1.42 ms case sensitive gain: 196.86 %
Output for 5.6.28
case sensitive: 2.31 ms case insensitive: 3.27 ms case sensitive gain: 41.49 %
Output for 5.6.21
case sensitive: 1.55 ms case insensitive: 2.5 ms case sensitive gain: 61.53 %
Output for 5.6.20
case sensitive: 1.46 ms case insensitive: 2.07 ms case sensitive gain: 42.05 %
Output for 5.6.19
case sensitive: 1.88 ms case insensitive: 2.71 ms case sensitive gain: 44.46 %
Output for 5.6.18
case sensitive: 1.37 ms case insensitive: 2.04 ms case sensitive gain: 48.92 %
Output for 5.6.17
case sensitive: 1.52 ms case insensitive: 2.2 ms case sensitive gain: 44.79 %
Output for 5.6.16
case sensitive: 1.44 ms case insensitive: 2.25 ms case sensitive gain: 56.64 %
Output for 5.6.15
case sensitive: 1.24 ms case insensitive: 1.89 ms case sensitive gain: 51.95 %
Output for 5.6.14
case sensitive: 1.33 ms case insensitive: 2.09 ms case sensitive gain: 57.61 %
Output for 5.6.13
case sensitive: 1.84 ms case insensitive: 2.73 ms case sensitive gain: 48.34 %
Output for 5.6.12
case sensitive: 1.96 ms case insensitive: 2.79 ms case sensitive gain: 42.55 %
Output for 5.6.11
case sensitive: 1.53 ms case insensitive: 2.28 ms case sensitive gain: 49.27 %
Output for 5.6.10
case sensitive: 1.71 ms case insensitive: 2.65 ms case sensitive gain: 54.78 %
Output for 5.6.9
case sensitive: 1.17 ms case insensitive: 1.69 ms case sensitive gain: 45.27 %
Output for 5.6.8
case sensitive: 1.77 ms case insensitive: 2.62 ms case sensitive gain: 47.61 %
Output for 5.5.35
case sensitive: 1.77 ms case insensitive: 2.66 ms case sensitive gain: 50.47 %
Output for 5.5.34
case sensitive: 1.17 ms case insensitive: 1.78 ms case sensitive gain: 52.41 %
Output for 5.5.33
case sensitive: 1.14 ms case insensitive: 1.74 ms case sensitive gain: 52.17 %
Output for 5.5.32
case sensitive: 1.51 ms case insensitive: 2.19 ms case sensitive gain: 45.18 %
Output for 5.5.31
case sensitive: 1.55 ms case insensitive: 2.41 ms case sensitive gain: 55.15 %
Output for 5.5.30
case sensitive: 1.36 ms case insensitive: 2.08 ms case sensitive gain: 53.43 %
Output for 5.5.29
case sensitive: 1.88 ms case insensitive: 2.85 ms case sensitive gain: 51.71 %
Output for 5.5.28
case sensitive: 2.65 ms case insensitive: 2.62 ms case sensitive gain: -0.86 %
Output for 5.5.27
case sensitive: 1.87 ms case insensitive: 3.34 ms case sensitive gain: 78.67 %
Output for 5.5.26
case sensitive: 1.79 ms case insensitive: 2.73 ms case sensitive gain: 52.74 %
Output for 5.5.25
case sensitive: 1.96 ms case insensitive: 3.75 ms case sensitive gain: 91.37 %
Output for 5.5.24
case sensitive: 1.78 ms case insensitive: 2.49 ms case sensitive gain: 39.56 %
Output for 5.4.45
case sensitive: 1.6 ms case insensitive: 2.45 ms case sensitive gain: 52.99 %
Output for 5.4.44
case sensitive: 1.72 ms case insensitive: 3.02 ms case sensitive gain: 75.67 %
Output for 5.4.43
case sensitive: 1.72 ms case insensitive: 2.66 ms case sensitive gain: 55.11 %
Output for 5.4.42
case sensitive: 1.64 ms case insensitive: 2.42 ms case sensitive gain: 47.58 %
Output for 5.4.41
case sensitive: 2.07 ms case insensitive: 2.48 ms case sensitive gain: 19.69 %
Output for 5.4.40
case sensitive: 1.66 ms case insensitive: 2.45 ms case sensitive gain: 47.71 %
Output for 5.4.39
case sensitive: 3.64 ms case insensitive: 5.62 ms case sensitive gain: 54.33 %
Output for 5.4.38
case sensitive: 2.11 ms case insensitive: 2.99 ms case sensitive gain: 41.74 %
Output for 5.4.37
case sensitive: 10.06 ms case insensitive: 2.52 ms case sensitive gain: -74.94 %
Output for 5.4.36
case sensitive: 1.61 ms case insensitive: 3.4 ms case sensitive gain: 110.9 %
Output for 5.4.35
case sensitive: 1.88 ms case insensitive: 2.57 ms case sensitive gain: 36.97 %
Output for 5.4.34
case sensitive: 1.66 ms case insensitive: 2.99 ms case sensitive gain: 80.53 %
Output for 5.4.32
case sensitive: 1.22 ms case insensitive: 1.94 ms case sensitive gain: 58.16 %
Output for 5.4.31
case sensitive: 1.42 ms case insensitive: 2.29 ms case sensitive gain: 61.73 %
Output for 5.4.30
case sensitive: 1.23 ms case insensitive: 2.01 ms case sensitive gain: 64.12 %
Output for 5.4.29
case sensitive: 1.25 ms case insensitive: 2.06 ms case sensitive gain: 65.73 %
Output for 5.4.28
case sensitive: 1.25 ms case insensitive: 1.86 ms case sensitive gain: 48.48 %
Output for 5.4.27
case sensitive: 1.32 ms case insensitive: 1.9 ms case sensitive gain: 44.08 %
Output for 5.4.26
case sensitive: 1.33 ms case insensitive: 1.87 ms case sensitive gain: 40.59 %
Output for 5.4.25
case sensitive: 1.49 ms case insensitive: 2.19 ms case sensitive gain: 47 %
Output for 5.4.24
case sensitive: 1.28 ms case insensitive: 2.01 ms case sensitive gain: 56.44 %
Output for 5.4.23
case sensitive: 1.31 ms case insensitive: 1.98 ms case sensitive gain: 50.84 %
Output for 5.4.22
case sensitive: 1.32 ms case insensitive: 2 ms case sensitive gain: 52.05 %
Output for 5.4.21
case sensitive: 1.29 ms case insensitive: 1.96 ms case sensitive gain: 51.93 %
Output for 5.4.20
case sensitive: 1.29 ms case insensitive: 1.93 ms case sensitive gain: 50.35 %
Output for 5.4.19
case sensitive: 1.45 ms case insensitive: 2.11 ms case sensitive gain: 45.58 %
Output for 5.4.18
case sensitive: 1.46 ms case insensitive: 2.09 ms case sensitive gain: 42.96 %
Output for 5.4.17
case sensitive: 1.5 ms case insensitive: 2.24 ms case sensitive gain: 49.67 %
Output for 5.4.16
case sensitive: 1.62 ms case insensitive: 1.97 ms case sensitive gain: 21.91 %
Output for 5.4.15
case sensitive: 1.3 ms case insensitive: 2.15 ms case sensitive gain: 65.4 %
Output for 5.4.14
case sensitive: 1.3 ms case insensitive: 1.86 ms case sensitive gain: 43.16 %
Output for 5.4.13
case sensitive: 1.54 ms case insensitive: 2.16 ms case sensitive gain: 40.25 %
Output for 5.4.12
case sensitive: 1.42 ms case insensitive: 2.1 ms case sensitive gain: 47.92 %
Output for 5.4.11
case sensitive: 1.32 ms case insensitive: 2.19 ms case sensitive gain: 65.07 %
Output for 5.4.10
case sensitive: 1.48 ms case insensitive: 2.03 ms case sensitive gain: 36.61 %
Output for 5.4.9
case sensitive: 1.43 ms case insensitive: 2.12 ms case sensitive gain: 48.99 %
Output for 5.4.8
case sensitive: 1.32 ms case insensitive: 1.95 ms case sensitive gain: 47.74 %
Output for 5.4.7
case sensitive: 1.35 ms case insensitive: 2.07 ms case sensitive gain: 53.25 %
Output for 5.4.6
case sensitive: 1.55 ms case insensitive: 2.22 ms case sensitive gain: 42.96 %
Output for 5.4.5
case sensitive: 1.42 ms case insensitive: 2.01 ms case sensitive gain: 42.18 %
Output for 5.4.4
case sensitive: 1.34 ms case insensitive: 1.91 ms case sensitive gain: 42.59 %
Output for 5.4.3
case sensitive: 1.35 ms case insensitive: 2.08 ms case sensitive gain: 54.45 %
Output for 5.4.2
case sensitive: 1.36 ms case insensitive: 2.09 ms case sensitive gain: 54.25 %
Output for 5.4.1
case sensitive: 1.4 ms case insensitive: 2.13 ms case sensitive gain: 52.08 %
Output for 5.4.0
case sensitive: 1.39 ms case insensitive: 2.25 ms case sensitive gain: 61.26 %
Output for 5.3.29
case sensitive: 1.68 ms case insensitive: 2.35 ms case sensitive gain: 39.65 %
Output for 5.3.28
case sensitive: 1.66 ms case insensitive: 2.24 ms case sensitive gain: 35.37 %
Output for 5.3.27
case sensitive: 1.57 ms case insensitive: 2.17 ms case sensitive gain: 37.59 %
Output for 5.3.26
case sensitive: 1.64 ms case insensitive: 2.23 ms case sensitive gain: 36.03 %
Output for 5.3.25
case sensitive: 1.59 ms case insensitive: 2.19 ms case sensitive gain: 37.31 %
Output for 5.3.24
case sensitive: 1.56 ms case insensitive: 2.2 ms case sensitive gain: 41.58 %
Output for 5.3.23
case sensitive: 1.78 ms case insensitive: 2.36 ms case sensitive gain: 33 %
Output for 5.3.22
case sensitive: 3.46 ms case insensitive: 4.89 ms case sensitive gain: 41.17 %
Output for 5.3.21
case sensitive: 1.78 ms case insensitive: 2.59 ms case sensitive gain: 45.42 %
Output for 5.3.20
case sensitive: 2.02 ms case insensitive: 2.34 ms case sensitive gain: 15.52 %
Output for 5.3.19
case sensitive: 1.75 ms case insensitive: 2.13 ms case sensitive gain: 21.72 %
Output for 5.3.18
case sensitive: 1.61 ms case insensitive: 2.15 ms case sensitive gain: 33.78 %
Output for 5.3.17
case sensitive: 1.72 ms case insensitive: 2.35 ms case sensitive gain: 36.7 %
Output for 5.3.16
case sensitive: 1.68 ms case insensitive: 2.18 ms case sensitive gain: 29.72 %
Output for 5.3.15
case sensitive: 1.68 ms case insensitive: 2.15 ms case sensitive gain: 27.76 %
Output for 5.3.14
case sensitive: 1.83 ms case insensitive: 2.78 ms case sensitive gain: 51.79 %
Output for 5.3.13
case sensitive: 1.71 ms case insensitive: 2.4 ms case sensitive gain: 40.67 %
Output for 5.3.12
case sensitive: 1.68 ms case insensitive: 2.24 ms case sensitive gain: 32.98 %
Output for 5.3.11
case sensitive: 1.66 ms case insensitive: 2.26 ms case sensitive gain: 35.84 %
Output for 5.3.10
case sensitive: 1.64 ms case insensitive: 2.3 ms case sensitive gain: 40.19 %
Output for 5.3.9
case sensitive: 1.71 ms case insensitive: 2.5 ms case sensitive gain: 45.79 %
Output for 5.3.8
case sensitive: 1.92 ms case insensitive: 2.55 ms case sensitive gain: 32.97 %
Output for 5.3.7
case sensitive: 1.69 ms case insensitive: 2.29 ms case sensitive gain: 35.58 %
Output for 5.3.6
case sensitive: 2.58 ms case insensitive: 4.64 ms case sensitive gain: 79.49 %
Output for 5.3.5
case sensitive: 1.86 ms case insensitive: 2.36 ms case sensitive gain: 27.03 %
Output for 5.3.4
case sensitive: 1.74 ms case insensitive: 2.28 ms case sensitive gain: 30.8 %
Output for 5.3.3
case sensitive: 2.28 ms case insensitive: 2.71 ms case sensitive gain: 18.78 %
Output for 5.3.2
case sensitive: 2.51 ms case insensitive: 2.17 ms case sensitive gain: -13.41 %
Output for 5.3.1
case sensitive: 1.74 ms case insensitive: 2.15 ms case sensitive gain: 23.46 %
Output for 5.3.0
case sensitive: 1.65 ms case insensitive: 2.1 ms case sensitive gain: 27.66 %
Output for 5.2.17
case sensitive: 1.73 ms case insensitive: 2.53 ms case sensitive gain: 46.2 %
Output for 5.2.16
case sensitive: 1.66 ms case insensitive: 2.57 ms case sensitive gain: 54.76 %
Output for 5.2.15
case sensitive: 1.65 ms case insensitive: 2.36 ms case sensitive gain: 42.94 %
Output for 5.2.14
case sensitive: 1.63 ms case insensitive: 2.37 ms case sensitive gain: 45.89 %
Output for 5.2.13
case sensitive: 1.78 ms case insensitive: 2.52 ms case sensitive gain: 42.05 %
Output for 5.2.12
case sensitive: 1.75 ms case insensitive: 2.42 ms case sensitive gain: 38.3 %
Output for 5.2.11
case sensitive: 1.62 ms case insensitive: 2.55 ms case sensitive gain: 57.53 %
Output for 5.2.10
case sensitive: 1.66 ms case insensitive: 3.03 ms case sensitive gain: 82.34 %
Output for 5.2.9
case sensitive: 1.66 ms case insensitive: 2.36 ms case sensitive gain: 42.6 %
Output for 5.2.8
case sensitive: 1.65 ms case insensitive: 2.58 ms case sensitive gain: 56.95 %
Output for 5.2.7
case sensitive: 1.64 ms case insensitive: 2.36 ms case sensitive gain: 43.89 %
Output for 5.2.6
case sensitive: 1.57 ms case insensitive: 2.6 ms case sensitive gain: 65.97 %
Output for 5.2.5
case sensitive: 1.64 ms case insensitive: 2.48 ms case sensitive gain: 51.3 %
Output for 5.2.4
case sensitive: 1.67 ms case insensitive: 2.51 ms case sensitive gain: 50.62 %
Output for 5.2.3
case sensitive: 1.63 ms case insensitive: 2.49 ms case sensitive gain: 53.05 %
Output for 5.2.2
case sensitive: 1.58 ms case insensitive: 2.6 ms case sensitive gain: 64.91 %
Output for 5.2.1
case sensitive: 1.74 ms case insensitive: 2.67 ms case sensitive gain: 53.87 %
Output for 5.2.0
case sensitive: 1.58 ms case insensitive: 2.57 ms case sensitive gain: 62.28 %
Output for 5.1.6
case sensitive: 1.53 ms case insensitive: 2.6 ms case sensitive gain: 70.61 %
Output for 5.1.5
case sensitive: 1.54 ms case insensitive: 2.27 ms case sensitive gain: 48.01 %
Output for 5.1.4
case sensitive: 1.47 ms case insensitive: 2.34 ms case sensitive gain: 59.01 %
Output for 5.1.3
case sensitive: 1.51 ms case insensitive: 2.28 ms case sensitive gain: 50.73 %
Output for 5.1.2
case sensitive: 1.53 ms case insensitive: 2.45 ms case sensitive gain: 60.38 %
Output for 5.1.1
case sensitive: 1.57 ms case insensitive: 2.29 ms case sensitive gain: 45.91 %
Output for 5.1.0
case sensitive: 1.59 ms case insensitive: 2.32 ms case sensitive gain: 46.14 %
Output for 5.0.5
case sensitive: 3.3 ms case insensitive: 4.08 ms case sensitive gain: 23.58 %
Output for 5.0.4
case sensitive: 3.46 ms case insensitive: 4.56 ms case sensitive gain: 31.99 %
Output for 5.0.3
case sensitive: 3.46 ms case insensitive: 4.19 ms case sensitive gain: 21.13 %
Output for 5.0.2
case sensitive: 3.25 ms case insensitive: 4.02 ms case sensitive gain: 23.46 %
Output for 5.0.1
case sensitive: 3.32 ms case insensitive: 4.68 ms case sensitive gain: 40.83 %
Output for 5.0.0
case sensitive: 3.39 ms case insensitive: 4.21 ms case sensitive gain: 24.42 %
Output for 4.3.0 - 4.4.9
Skipped