3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pismena = "ABA"; echo array_filter(count_chars($pismena, 1), function($c) { return $c > 1; })[65];
based on fev0D
Output for 5.4.0 - 7.3.0beta1
2
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ',' or ';' in /in/YdhnH on line 4
Process exited with code 255.