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++) { if(strpos($class, 'Concrete5_Model_') === 0) { } } $deltaCS = microtime(true) - $t0; // Test - case insensitive $t0 = microtime(true); for($i = 0; $i < $count; $i++) { if(stripos($class, 'Concrete5_Model_') === 0) { } } $deltaCI = microtime(true) - $t0; // Write results 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: 1.16 ms case insensitive: 3.49 ms case sensitive gain: 201.46 %
Output for 7.0.14
case sensitive: 0.87 ms case insensitive: 2.52 ms case sensitive gain: 188.79 %
Output for 7.0.8
case sensitive: 0.57 ms case insensitive: 1.74 ms case sensitive gain: 205.71 %
Output for 7.0.7
case sensitive: 0.33 ms case insensitive: 1.04 ms case sensitive gain: 219.15 %
Output for 7.0.6
case sensitive: 0.43 ms case insensitive: 1.31 ms case sensitive gain: 201.43 %
Output for 7.0.5
case sensitive: 0.46 ms case insensitive: 1.31 ms case sensitive gain: 183.2 %
Output for 7.0.4
case sensitive: 0.56 ms case insensitive: 1.64 ms case sensitive gain: 193.02 %
Output for 7.0.3
case sensitive: 0.39 ms case insensitive: 1.18 ms case sensitive gain: 201.77 %
Output for 7.0.2
case sensitive: 0.61 ms case insensitive: 1.8 ms case sensitive gain: 193.36 %
Output for 7.0.1
case sensitive: 0.41 ms case insensitive: 1.14 ms case sensitive gain: 177.61 %
Output for 7.0.0
case sensitive: 0.38 ms case insensitive: 1.14 ms case sensitive gain: 201.38 %
Output for hhvm-3.12.0
case sensitive: 1.25 ms case insensitive: 1.3 ms case sensitive gain: 4.23 %
Output for hhvm-3.10.0
case sensitive: 1.43 ms case insensitive: 1.43 ms case sensitive gain: 0.37 %
Output for 5.6.28
case sensitive: -0 ms case insensitive: -4.17 ms case sensitive gain: 349960 %
Output for 5.6.23
case sensitive: 1.39 ms case insensitive: 2.02 ms case sensitive gain: 45.31 %
Output for 5.6.22
case sensitive: 2.12 ms case insensitive: 3.08 ms case sensitive gain: 45.27 %
Output for 5.6.21
case sensitive: 1.55 ms case insensitive: 2.27 ms case sensitive gain: 45.78 %
Output for 5.6.20
case sensitive: 1.33 ms case insensitive: 1.95 ms case sensitive gain: 46.15 %
Output for 5.6.19
case sensitive: 2.18 ms case insensitive: 3.13 ms case sensitive gain: 43.3 %
Output for 5.6.18
case sensitive: 1.45 ms case insensitive: 2.14 ms case sensitive gain: 47.29 %
Output for 5.6.17
case sensitive: 1.27 ms case insensitive: 1.86 ms case sensitive gain: 47.23 %
Output for 5.6.16
case sensitive: 2.08 ms case insensitive: 2.95 ms case sensitive gain: 42.03 %
Output for 5.6.15
case sensitive: 1.8 ms case insensitive: 2.63 ms case sensitive gain: 45.73 %
Output for 5.6.14
case sensitive: 1.28 ms case insensitive: 2.04 ms case sensitive gain: 59.41 %
Output for 5.6.13
case sensitive: 2.32 ms case insensitive: 2.89 ms case sensitive gain: 24.83 %
Output for 5.6.12
case sensitive: 1.27 ms case insensitive: 1.86 ms case sensitive gain: 46.25 %
Output for 5.6.11
case sensitive: 2.08 ms case insensitive: 3.2 ms case sensitive gain: 53.84 %
Output for 5.6.10
case sensitive: 1.34 ms case insensitive: 2.02 ms case sensitive gain: 50.45 %
Output for 5.6.9
case sensitive: 2.07 ms case insensitive: 2.89 ms case sensitive gain: 39.58 %
Output for 5.6.8
case sensitive: 1.22 ms case insensitive: 1.83 ms case sensitive gain: 49.79 %
Output for 5.6.7
case sensitive: 1.94 ms case insensitive: 2.93 ms case sensitive gain: 51.58 %
Output for 5.6.6
case sensitive: 1.29 ms case insensitive: 1.88 ms case sensitive gain: 45.49 %
Output for 5.6.5
case sensitive: 1.51 ms case insensitive: 2.08 ms case sensitive gain: 37.93 %
Output for 5.6.4
case sensitive: 1.74 ms case insensitive: 2.42 ms case sensitive gain: 38.97 %
Output for 5.6.3
case sensitive: 1.25 ms case insensitive: 1.83 ms case sensitive gain: 46.46 %
Output for 5.6.2
case sensitive: 2.27 ms case insensitive: 3.24 ms case sensitive gain: 42.89 %
Output for 5.6.1
case sensitive: 1.58 ms case insensitive: 1.99 ms case sensitive gain: 25.94 %
Output for 5.6.0
case sensitive: 1.07 ms case insensitive: 1.7 ms case sensitive gain: 59.53 %
Output for 5.5.37
case sensitive: 1.39 ms case insensitive: 2.2 ms case sensitive gain: 57.99 %
Output for 5.5.36
case sensitive: 2.28 ms case insensitive: 3.16 ms case sensitive gain: 38.87 %
Output for 5.5.35
case sensitive: 1.83 ms case insensitive: 2.67 ms case sensitive gain: 45.32 %
Output for 5.5.34
case sensitive: 2.16 ms case insensitive: 3.27 ms case sensitive gain: 51.75 %
Output for 5.5.33
case sensitive: 1.84 ms case insensitive: 2.71 ms case sensitive gain: 47.27 %
Output for 5.5.32
case sensitive: 1.3 ms case insensitive: 1.9 ms case sensitive gain: 46.48 %
Output for 5.5.31
case sensitive: 2.31 ms case insensitive: 3.44 ms case sensitive gain: 48.71 %
Output for 5.5.30
case sensitive: 2.32 ms case insensitive: 3.44 ms case sensitive gain: 47.84 %
Output for 5.5.29
case sensitive: 1.22 ms case insensitive: 1.76 ms case sensitive gain: 44.9 %
Output for 5.5.28
case sensitive: 1.32 ms case insensitive: 1.91 ms case sensitive gain: 44.45 %
Output for 5.5.27
case sensitive: 1.37 ms case insensitive: 2 ms case sensitive gain: 45.97 %
Output for 5.5.26
case sensitive: 1.34 ms case insensitive: 2.01 ms case sensitive gain: 49.85 %
Output for 5.5.25
case sensitive: 2.2 ms case insensitive: 3.15 ms case sensitive gain: 42.91 %
Output for 5.5.24
case sensitive: 1.64 ms case insensitive: 2.31 ms case sensitive gain: 40.65 %
Output for 5.5.23
case sensitive: 1.41 ms case insensitive: 2 ms case sensitive gain: 41.92 %
Output for 5.5.22
case sensitive: 1.98 ms case insensitive: 2.72 ms case sensitive gain: 37.65 %
Output for 5.5.21
case sensitive: 1.47 ms case insensitive: 2.06 ms case sensitive gain: 40.7 %
Output for 5.5.20
case sensitive: 1.35 ms case insensitive: 1.96 ms case sensitive gain: 44.96 %
Output for 5.5.19
case sensitive: 2.36 ms case insensitive: 3.4 ms case sensitive gain: 44.16 %
Output for 5.5.18
case sensitive: 1.77 ms case insensitive: 2.51 ms case sensitive gain: 41.82 %
Output for 5.5.16
case sensitive: 1.24 ms case insensitive: 1.62 ms case sensitive gain: 31.08 %
Output for 5.5.15
case sensitive: 1.53 ms case insensitive: 2.14 ms case sensitive gain: 40.37 %
Output for 5.5.14
case sensitive: 2.1 ms case insensitive: 2.72 ms case sensitive gain: 29.68 %
Output for 5.5.13
case sensitive: 1.54 ms case insensitive: 2.21 ms case sensitive gain: 43.8 %
Output for 5.5.12
case sensitive: 1.35 ms case insensitive: 1.87 ms case sensitive gain: 38.67 %
Output for 5.5.11
case sensitive: 1.69 ms case insensitive: 2.36 ms case sensitive gain: 39.73 %
Output for 5.5.10
case sensitive: 2.15 ms case insensitive: 2.58 ms case sensitive gain: 19.86 %
Output for 5.5.9
case sensitive: 1.43 ms case insensitive: 1.9 ms case sensitive gain: 32.83 %
Output for 5.5.8
case sensitive: 1.76 ms case insensitive: 2.5 ms case sensitive gain: 42.48 %
Output for 5.5.7
case sensitive: 2.23 ms case insensitive: 3.13 ms case sensitive gain: 40.33 %
Output for 5.5.6
case sensitive: 1.45 ms case insensitive: 2.36 ms case sensitive gain: 62.14 %
Output for 5.5.5
case sensitive: 1.29 ms case insensitive: 1.76 ms case sensitive gain: 36.34 %
Output for 5.5.4
case sensitive: 1.27 ms case insensitive: 1.66 ms case sensitive gain: 30.49 %
Output for 5.5.3
case sensitive: 3.33 ms case insensitive: 2.72 ms case sensitive gain: -18.39 %
Output for 5.5.2
case sensitive: 2.27 ms case insensitive: 3.17 ms case sensitive gain: 39.56 %
Output for 5.5.1
case sensitive: 1.18 ms case insensitive: 1.69 ms case sensitive gain: 42.64 %
Output for 5.5.0
case sensitive: 1.12 ms case insensitive: 1.63 ms case sensitive gain: 45.66 %
Output for 5.4.45
case sensitive: 1.32 ms case insensitive: 1.94 ms case sensitive gain: 46.99 %
Output for 5.4.44
case sensitive: 1.28 ms case insensitive: 1.9 ms case sensitive gain: 48.69 %
Output for 5.4.43
case sensitive: 1.61 ms case insensitive: 2.38 ms case sensitive gain: 47.78 %
Output for 5.4.42
case sensitive: 2.09 ms case insensitive: 3.01 ms case sensitive gain: 43.99 %
Output for 5.4.41
case sensitive: 1.28 ms case insensitive: 1.93 ms case sensitive gain: 50.9 %
Output for 5.4.40
case sensitive: 1.29 ms case insensitive: 1.89 ms case sensitive gain: 46.93 %
Output for 5.4.39
case sensitive: 2.05 ms case insensitive: 2.93 ms case sensitive gain: 42.7 %
Output for 5.4.38
case sensitive: 1.39 ms case insensitive: 1.97 ms case sensitive gain: 41.22 %
Output for 5.4.37
case sensitive: 2.3 ms case insensitive: 2.78 ms case sensitive gain: 21.04 %
Output for 5.4.36
case sensitive: 1.32 ms case insensitive: 1.95 ms case sensitive gain: 47.59 %
Output for 5.4.35
case sensitive: 1.73 ms case insensitive: 2.62 ms case sensitive gain: 51.84 %
Output for 5.4.34
case sensitive: 1.78 ms case insensitive: 2.64 ms case sensitive gain: 48.23 %
Output for 5.4.32
case sensitive: 1.16 ms case insensitive: 1.75 ms case sensitive gain: 51.06 %
Output for 5.4.31
case sensitive: 2.15 ms case insensitive: 3.15 ms case sensitive gain: 46.76 %
Output for 5.4.30
case sensitive: 1.41 ms case insensitive: 1.98 ms case sensitive gain: 40.6 %
Output for 5.4.29
case sensitive: 1.28 ms case insensitive: 1.99 ms case sensitive gain: 55.28 %
Output for 5.4.28
case sensitive: 1.22 ms case insensitive: 1.72 ms case sensitive gain: 41.16 %
Output for 5.4.27
case sensitive: 2.3 ms case insensitive: 3.15 ms case sensitive gain: 36.86 %
Output for 5.4.26
case sensitive: 2.21 ms case insensitive: 3.27 ms case sensitive gain: 47.61 %
Output for 5.4.25
case sensitive: 1.88 ms case insensitive: 2.73 ms case sensitive gain: 45.16 %
Output for 5.4.24
case sensitive: 2.07 ms case insensitive: 3.04 ms case sensitive gain: 46.98 %
Output for 5.4.23
case sensitive: 1.28 ms case insensitive: 1.88 ms case sensitive gain: 47.83 %
Output for 5.4.22
case sensitive: 1.19 ms case insensitive: 1.61 ms case sensitive gain: 35.2 %
Output for 5.4.21
case sensitive: 1.65 ms case insensitive: 2.38 ms case sensitive gain: 44.09 %
Output for 5.4.20
case sensitive: 1.17 ms case insensitive: 1.76 ms case sensitive gain: 50.4 %
Output for 5.4.19
case sensitive: 1.12 ms case insensitive: 1.54 ms case sensitive gain: 38.05 %
Output for 5.4.18
case sensitive: 1.31 ms case insensitive: 1.81 ms case sensitive gain: 37.76 %
Output for 5.4.17
case sensitive: 1.32 ms case insensitive: 1.88 ms case sensitive gain: 42.04 %
Output for 5.4.16
case sensitive: 1.1 ms case insensitive: 1.67 ms case sensitive gain: 51.86 %
Output for 5.4.15
case sensitive: 1.16 ms case insensitive: 1.84 ms case sensitive gain: 57.93 %
Output for 5.4.14
case sensitive: 2.18 ms case insensitive: 3.1 ms case sensitive gain: 42.02 %
Output for 5.4.13
case sensitive: 1.2 ms case insensitive: 1.65 ms case sensitive gain: 37.36 %
Output for 5.4.12
case sensitive: 1.15 ms case insensitive: 1.64 ms case sensitive gain: 43.15 %
Output for 5.4.11
case sensitive: 1.13 ms case insensitive: 1.64 ms case sensitive gain: 44.89 %
Output for 5.4.10
case sensitive: 2.34 ms case insensitive: 3.14 ms case sensitive gain: 34.18 %
Output for 5.4.9
case sensitive: 1.14 ms case insensitive: 1.75 ms case sensitive gain: 53.02 %
Output for 5.4.8
case sensitive: 2.27 ms case insensitive: 3.37 ms case sensitive gain: 48.45 %
Output for 5.4.7
case sensitive: 2.43 ms case insensitive: 2.96 ms case sensitive gain: 21.59 %
Output for 5.4.6
case sensitive: 1.93 ms case insensitive: 2.78 ms case sensitive gain: 43.94 %
Output for 5.4.5
case sensitive: 1.35 ms case insensitive: 2.02 ms case sensitive gain: 48.9 %
Output for 5.4.4
case sensitive: 2.21 ms case insensitive: 2.48 ms case sensitive gain: 12.19 %
Output for 5.4.3
case sensitive: 2.28 ms case insensitive: 3.25 ms case sensitive gain: 42.71 %
Output for 5.4.2
case sensitive: 1.44 ms case insensitive: 2.09 ms case sensitive gain: 45.03 %
Output for 5.4.1
case sensitive: 1.48 ms case insensitive: 2.12 ms case sensitive gain: 43.51 %
Output for 5.4.0
case sensitive: 1.31 ms case insensitive: 2.01 ms case sensitive gain: 53.93 %
Output for 5.3.29
case sensitive: 3.11 ms case insensitive: 4.51 ms case sensitive gain: 45.1 %
Output for 5.3.28
case sensitive: 2.84 ms case insensitive: 4.26 ms case sensitive gain: 50.06 %
Output for 5.3.27
case sensitive: 1.82 ms case insensitive: 2.79 ms case sensitive gain: 52.73 %
Output for 5.3.26
case sensitive: 2.03 ms case insensitive: 2.99 ms case sensitive gain: 47.11 %
Output for 5.3.25
case sensitive: 1.84 ms case insensitive: 2.78 ms case sensitive gain: 51.11 %
Output for 5.3.24
case sensitive: 1.85 ms case insensitive: 2.8 ms case sensitive gain: 51.07 %
Output for 5.3.23
case sensitive: 1.86 ms case insensitive: 2.7 ms case sensitive gain: 45.16 %
Output for 5.3.22
case sensitive: 1.93 ms case insensitive: 2.95 ms case sensitive gain: 52.56 %
Output for 5.3.21
case sensitive: 2.44 ms case insensitive: 3.99 ms case sensitive gain: 63.51 %
Output for 5.3.20
case sensitive: 2.91 ms case insensitive: 4.34 ms case sensitive gain: 48.76 %
Output for 5.3.19
case sensitive: 3.05 ms case insensitive: 4.4 ms case sensitive gain: 44.49 %
Output for 5.3.18
case sensitive: 2.59 ms case insensitive: 3.82 ms case sensitive gain: 47.13 %
Output for 5.3.17
case sensitive: 2.74 ms case insensitive: 4.15 ms case sensitive gain: 51.33 %
Output for 5.3.16
case sensitive: 3.74 ms case insensitive: 5.09 ms case sensitive gain: 36.23 %
Output for 5.3.15
case sensitive: 2.29 ms case insensitive: 3.25 ms case sensitive gain: 42.24 %
Output for 5.3.14
case sensitive: 2.57 ms case insensitive: 3.65 ms case sensitive gain: 42.06 %
Output for 5.3.13
case sensitive: 2.32 ms case insensitive: 3.4 ms case sensitive gain: 46.49 %
Output for 5.3.12
case sensitive: 3.49 ms case insensitive: 5.1 ms case sensitive gain: 45.96 %
Output for 5.3.11
case sensitive: 3.5 ms case insensitive: 3.86 ms case sensitive gain: 10.41 %
Output for 5.3.10
case sensitive: 2.55 ms case insensitive: 3.52 ms case sensitive gain: 37.67 %
Output for 5.3.9
case sensitive: 1.9 ms case insensitive: 2.72 ms case sensitive gain: 43.08 %
Output for 5.3.8
case sensitive: 2.02 ms case insensitive: 2.78 ms case sensitive gain: 37.69 %
Output for 5.3.7
case sensitive: 3.18 ms case insensitive: 4.6 ms case sensitive gain: 44.75 %
Output for 5.3.6
case sensitive: 3.64 ms case insensitive: 5.42 ms case sensitive gain: 48.89 %
Output for 5.3.5
case sensitive: 2.23 ms case insensitive: 3.21 ms case sensitive gain: 43.95 %
Output for 5.3.4
case sensitive: 3.87 ms case insensitive: 5.32 ms case sensitive gain: 37.75 %
Output for 5.3.3
case sensitive: 2.36 ms case insensitive: 3.34 ms case sensitive gain: 41.87 %
Output for 5.3.2
case sensitive: 3.86 ms case insensitive: 5.62 ms case sensitive gain: 45.72 %
Output for 5.3.1
case sensitive: 2.15 ms case insensitive: 3.09 ms case sensitive gain: 43.99 %
Output for 5.3.0
case sensitive: 2.42 ms case insensitive: 3.67 ms case sensitive gain: 51.84 %
Output for 5.2.17
case sensitive: 3.76 ms case insensitive: 5.74 ms case sensitive gain: 52.41 %
Output for 5.2.16
case sensitive: 2.97 ms case insensitive: 4.6 ms case sensitive gain: 54.74 %
Output for 5.2.15
case sensitive: 3.98 ms case insensitive: 6.13 ms case sensitive gain: 53.88 %
Output for 5.2.14
case sensitive: 2.33 ms case insensitive: 3.49 ms case sensitive gain: 49.81 %
Output for 5.2.13
case sensitive: 3.7 ms case insensitive: 5.48 ms case sensitive gain: 47.91 %
Output for 5.2.12
case sensitive: 1.92 ms case insensitive: 2.82 ms case sensitive gain: 46.49 %
Output for 5.2.11
case sensitive: 2.41 ms case insensitive: 3.49 ms case sensitive gain: 44.59 %
Output for 5.2.10
case sensitive: 2.19 ms case insensitive: 3.43 ms case sensitive gain: 56.41 %
Output for 5.2.9
case sensitive: 2.24 ms case insensitive: 4.42 ms case sensitive gain: 97.65 %
Output for 5.2.8
case sensitive: 2.44 ms case insensitive: 3.89 ms case sensitive gain: 59.81 %
Output for 5.2.7
case sensitive: 2.22 ms case insensitive: 3.6 ms case sensitive gain: 62.35 %
Output for 5.2.6
case sensitive: 3.16 ms case insensitive: 5.06 ms case sensitive gain: 60.26 %
Output for 5.2.5
case sensitive: 3.27 ms case insensitive: 4.98 ms case sensitive gain: 52.37 %
Output for 5.2.4
case sensitive: 2.28 ms case insensitive: 3.51 ms case sensitive gain: 53.83 %
Output for 5.2.3
case sensitive: 3.37 ms case insensitive: 5.09 ms case sensitive gain: 50.85 %
Output for 5.2.2
case sensitive: 3.97 ms case insensitive: 6.22 ms case sensitive gain: 56.49 %
Output for 5.2.1
case sensitive: 2.25 ms case insensitive: 3.31 ms case sensitive gain: 47.3 %
Output for 5.2.0
case sensitive: 4.14 ms case insensitive: 6.36 ms case sensitive gain: 53.69 %
Output for 5.1.6
case sensitive: 2.86 ms case insensitive: 4.25 ms case sensitive gain: 48.59 %
Output for 5.1.5
case sensitive: 2.4 ms case insensitive: 3.54 ms case sensitive gain: 47.62 %
Output for 5.1.4
case sensitive: 2.2 ms case insensitive: 3.42 ms case sensitive gain: 55.2 %
Output for 5.1.3
case sensitive: 2.14 ms case insensitive: 3.45 ms case sensitive gain: 61.4 %
Output for 5.1.2
case sensitive: 3.34 ms case insensitive: 5.35 ms case sensitive gain: 59.99 %
Output for 5.1.1
case sensitive: 3.38 ms case insensitive: 3.92 ms case sensitive gain: 16.1 %
Output for 5.1.0
case sensitive: 3.29 ms case insensitive: 5.1 ms case sensitive gain: 55.12 %
Output for 5.0.5
case sensitive: 3.5 ms case insensitive: 4.77 ms case sensitive gain: 36.04 %
Output for 5.0.4
case sensitive: 3.38 ms case insensitive: 4.68 ms case sensitive gain: 38.43 %
Output for 5.0.3
case sensitive: 3.74 ms case insensitive: 5.26 ms case sensitive gain: 40.57 %
Output for 5.0.2
case sensitive: 5.44 ms case insensitive: 6.58 ms case sensitive gain: 20.92 %
Output for 5.0.1
case sensitive: 6.41 ms case insensitive: 8.24 ms case sensitive gain: 28.54 %
Output for 5.0.0
case sensitive: 4.55 ms case insensitive: 6.38 ms case sensitive gain: 40.09 %
Output for 4.3.0 - 4.4.9
Skipped