3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Source: https://bugs.php.net/bug.php?id=61225 $wyraz = "kajak"; $isAnagram = array(); for ($i=0;$i<strlen($wyraz);$i++) { if isset($isAnagram[$wyraz[$i]]) $isAnagram[$wyraz[$i]]++; else $isAnagram[$wyraz[$i]] = 0; } print_r($isAnagram);
Output for 5.4.0 - 5.5.3
Parse error: syntax error, unexpected 'isset' (T_ISSET), expecting '(' in /in/MaHr9 on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ISSET, expecting '(' in /in/MaHr9 on line 7
Process exited with code 255.