3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function Syllables($string) { $syllables = array ( '(a|e|i|o|u|y)', ); return preg_match_all('/' . implode('|', $syllables) . '/', preg_replace('/[es]$/', '', $string)); } $domains = array ( 'algorithmical' => 0, 'bitoriented' => 0, 'cargocultdevs' => 0, 'corecursion' => 0, 'dereferenced' => 0, 'fellowhackers' => 0, 'gosub10' => 0, 'gosubten' => 0, 'humbledeveloper' => 0, 'humbleprogrammers' => 0, 'metaprogramming' => 0, 'privatevoid' => 0, 'shiftleft1' => 0, 'stackoverflow' => 0, 'understandrecursion' => 0, 'writeoncereadmany' => 0, ); foreach ($domains as $key => $value) { $domains[$key] = Syllables($value); } if (arsort($domains, SORT_NUMERIC) === true) { print_r($domains); }
Output for 7.0.0 - 7.1.0
Array ( [algorithmical] => 0 [bitoriented] => 0 [cargocultdevs] => 0 [corecursion] => 0 [dereferenced] => 0 [fellowhackers] => 0 [gosub10] => 0 [gosubten] => 0 [humbledeveloper] => 0 [humbleprogrammers] => 0 [metaprogramming] => 0 [privatevoid] => 0 [shiftleft1] => 0 [stackoverflow] => 0 [understandrecursion] => 0 [writeoncereadmany] => 0 )
Output for 5.4.0 - 5.6.28
Array ( [privatevoid] => 0 [metaprogramming] => 0 [humbleprogrammers] => 0 [shiftleft1] => 0 [stackoverflow] => 0 [writeoncereadmany] => 0 [understandrecursion] => 0 [humbledeveloper] => 0 [gosubten] => 0 [cargocultdevs] => 0 [bitoriented] => 0 [corecursion] => 0 [dereferenced] => 0 [gosub10] => 0 [fellowhackers] => 0 [algorithmical] => 0 )
Output for 4.3.4 - 5.3.29
Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Warning: preg_match_all() expects at least 3 parameters, 2 given in /in/JcaXB on line 10 Array ( [privatevoid] => [metaprogramming] => [humbleprogrammers] => [shiftleft1] => [stackoverflow] => [writeoncereadmany] => [understandrecursion] => [humbledeveloper] => [gosubten] => [cargocultdevs] => [bitoriented] => [corecursion] => [dereferenced] => [gosub10] => [fellowhackers] => [algorithmical] => )
Output for 4.3.3

Process exited with code 139.
Output for 4.3.0 - 4.3.2
Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Warning: Wrong parameter count for preg_match_all() in /in/JcaXB on line 10 Array ( [privatevoid] => [metaprogramming] => [humbleprogrammers] => [shiftleft1] => [stackoverflow] => [writeoncereadmany] => [understandrecursion] => [humbledeveloper] => [gosubten] => [cargocultdevs] => [bitoriented] => [corecursion] => [dereferenced] => [gosub10] => [fellowhackers] => [algorithmical] => )