3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = ' \Delta \Gamma \Lambda \Omega \Phi \Pi \Psi \Sigma \Theta \Upsilon \Xi \alpha \beta \chi \delta \epsilon \eta \gamma \gamma \kappa \lambda \mu \nu \omega \phi \pi \psi \rho \sigma \tau \theta \upsilon \varepsilon \varphi \varpi \varrho \varsigma \vartheta \xi \zeta '; $x = array_filter(preg_split('/\s+/', $x)); usort($x, function ($a, $b) { return strcmp(strtolower($a), strtolower($b)); }); foreach ($x as $xx) { echo $xx, "\n"; }
based on ENq8A
Output for 7.0.0 - 7.2.0
\alpha \beta \chi \Delta \delta \epsilon \eta \Gamma \gamma \gamma \kappa \lambda \Lambda \mu \nu \omega \Omega \phi \Phi \pi \Pi \psi \Psi \rho \Sigma \sigma \tau \Theta \theta \Upsilon \upsilon \varepsilon \varphi \varpi \varrho \varsigma \vartheta \Xi \xi \zeta
Output for 5.3.21 - 5.6.28
\alpha \beta \chi \delta \Delta \epsilon \eta \gamma \Gamma \gamma \kappa \Lambda \lambda \mu \nu \omega \Omega \phi \Phi \pi \Pi \psi \Psi \rho \Sigma \sigma \tau \theta \Theta \upsilon \Upsilon \varepsilon \varphi \varpi \varrho \varsigma \vartheta \Xi \xi \zeta