3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $assoc = array( "a" => 1, "b" => 0, 0 => 0 ); function is_assoc($array){ $sorted = ksort(array_keys($array); return !ctype_digit( implode('', $sorted)) ); } echo is_assoc($assoc); ?>
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/EWDM9 on line 10
Process exited with code 255.