3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $file='abactor abaculus abacus Abadite'; $result = []; foreach(str_split($file) as $char) { $result[$char]=isset($result[$char]) ?'*'.$result[$char]; :$char; } print_r($result);
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected ';' in /in/BDBcb on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/BDBcb on line 8
Process exited with code 255.