3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $internal_functions = get_defined_functions()['internal']; $lengths = array_map( function ($name) { return strlen($name); }, $internal_functions ); $length_variance = array_count_values($lengths); ksort($length_variance); echo 'Total Function Count: '. count($length_variance) . PHP_EOL . PHP_EOL; echo "Name Length \t\t Count" . PHP_EOL . PHP_EOL; foreach ($length_variance as $length => $count) { echo $length ."\t\t\t". $count; echo PHP_EOL; }
Output for 7.1.0
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 32 5 54 6 66 7 79 8 51 9 73 10 75 11 82 12 71 13 71 14 54 15 49 16 48 17 46 18 47 19 39 20 48 21 60 22 30 23 42 24 24 25 28 26 23 27 18 28 8 29 10 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 7.0.14
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 32 5 54 6 66 7 79 8 51 9 73 10 74 11 81 12 71 13 71 14 54 15 49 16 48 17 45 18 47 19 39 20 48 21 60 22 30 23 41 24 24 25 28 26 23 27 18 28 8 29 10 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 7.0.6
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 32 5 53 6 65 7 66 8 45 9 69 10 63 11 77 12 65 13 69 14 53 15 47 16 47 17 43 18 44 19 39 20 48 21 60 22 30 23 41 24 24 25 27 26 23 27 18 28 8 29 10 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 7.0.5
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 32 5 48 6 64 7 78 8 50 9 73 10 74 11 77 12 66 13 60 14 49 15 41 16 42 17 36 18 34 19 32 20 36 21 45 22 24 23 33 24 13 25 21 26 17 27 14 28 4 29 5 30 3 31 1 32 1 33 3 34 3 35 1 36 2 37 3 38 1
Output for 7.0.0 - 7.0.4
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 32 5 54 6 66 7 79 8 51 9 73 10 74 11 81 12 71 13 70 14 57 15 49 16 50 17 46 18 47 19 42 20 48 21 62 22 33 23 43 24 24 25 29 26 23 27 19 28 8 29 11 30 4 31 1 32 6 33 3 34 3 35 1 36 4 37 6 38 4
Output for 5.6.28
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 79 8 51 9 73 10 73 11 80 12 69 13 70 14 54 15 47 16 48 17 45 18 47 19 40 20 49 21 60 22 31 23 42 24 25 25 28 26 23 27 17 28 8 29 10 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 5.6.21
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 33 5 55 6 66 7 66 8 45 9 69 10 62 11 76 12 63 13 68 14 53 15 46 16 47 17 43 18 44 19 40 20 49 21 60 22 31 23 42 24 25 25 27 26 23 27 17 28 8 29 10 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 5.6.13 - 5.6.15, 5.6.20
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 50 6 65 7 78 8 50 9 73 10 77 11 76 12 64 13 59 14 49 15 39 16 42 17 36 18 35 19 33 20 37 21 45 22 25 23 33 24 14 25 21 26 17 27 13 28 4 29 5 30 3 31 1 32 1 33 3 34 3 35 1 36 2 37 3 38 1
Output for 5.6.16 - 5.6.19
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 79 8 51 9 73 10 77 11 80 12 69 13 69 14 57 15 47 16 50 17 46 18 48 19 43 20 49 21 62 22 34 23 44 24 25 25 29 26 23 27 18 28 8 29 11 30 4 31 1 32 6 33 3 34 3 35 1 36 4 37 6 38 4
Output for 5.6.8 - 5.6.12
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 79 8 51 9 73 10 77 11 80 12 69 13 70 14 57 15 47 16 50 17 46 18 50 19 43 20 50 21 62 22 34 23 44 24 26 25 30 26 23 27 18 28 8 29 11 30 4 31 1 32 6 33 3 34 3 35 1 36 4 37 6 38 4
Output for 5.5.35
Total Function Count: 37 Name Length Count 1 1 2 2 3 16 4 33 5 55 6 66 7 66 8 45 9 69 10 62 11 75 12 63 13 66 14 53 15 46 16 46 17 43 18 44 19 38 20 49 21 60 22 31 23 42 24 24 25 27 26 22 27 17 28 8 29 9 30 3 32 5 33 2 34 1 35 1 36 4 37 4 38 4
Output for 5.5.29 - 5.5.30, 5.5.34
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 50 6 65 7 78 8 49 9 73 10 75 11 74 12 64 13 57 14 49 15 38 16 40 17 36 18 35 19 31 20 37 21 45 22 25 23 33 24 13 25 21 26 16 27 13 28 4 29 4 30 3 31 1 32 1 33 3 34 3 35 1 36 2 37 3 38 1
Output for 5.5.31 - 5.5.33
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 79 8 50 9 73 10 75 11 78 12 69 13 67 14 57 15 46 16 48 17 46 18 48 19 41 20 49 21 62 22 34 23 44 24 24 25 29 26 22 27 18 28 8 29 10 30 4 31 1 32 6 33 3 34 3 35 1 36 4 37 6 38 4
Output for 5.5.24 - 5.5.28
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 79 8 50 9 73 10 75 11 78 12 69 13 68 14 57 15 46 16 48 17 46 18 50 19 41 20 50 21 62 22 34 23 44 24 25 25 30 26 22 27 18 28 8 29 10 30 4 31 1 32 6 33 3 34 3 35 1 36 4 37 6 38 4
Output for 5.4.18 - 5.4.45
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 67 7 78 8 50 9 73 10 75 11 74 12 67 13 64 14 53 15 44 16 45 17 44 18 45 19 37 20 46 21 51 22 31 23 40 24 16 25 26 26 18 27 15 28 6 29 7 30 3 31 1 32 4 33 2 34 3 35 1 36 2 37 3 38 1
Output for 5.4.15 - 5.4.17
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 66 7 78 8 50 9 73 10 75 11 74 12 67 13 64 14 53 15 44 16 45 17 44 18 45 19 37 20 46 21 51 22 31 23 40 24 16 25 26 26 18 27 15 28 6 29 7 30 3 31 1 32 4 33 2 34 3 35 1 36 2 37 3 38 1
Output for 5.4.1 - 5.4.14
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 66 7 78 8 50 9 73 10 75 11 74 12 64 13 64 14 51 15 41 16 42 17 41 18 42 19 34 20 44 21 47 22 26 23 36 24 13 25 25 26 15 27 12 28 6 29 6 30 2 31 1 32 4 33 2 34 3 35 1 36 2 37 3 38 1
Output for 5.4.0
Total Function Count: 38 Name Length Count 1 1 2 2 3 16 4 33 5 56 6 66 7 78 8 50 9 73 10 75 11 74 12 64 13 64 14 51 15 41 16 42 17 41 18 42 19 34 20 44 21 47 22 26 23 36 24 12 25 25 26 15 27 12 28 6 29 6 30 2 31 1 32 4 33 2 34 3 35 1 36 2 37 3 38 1
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/MhjRU on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/MhjRU on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/MhjRU on line 3
Process exited with code 255.