@Immutable public static boolean is_finite(double value){ return !Double.isInfinite(value); }
@Immutable public static double floatval(Memory memory) { return memory.toDouble(); }
@Immutable public static long intval(Memory memory) { return memory.toLong(); }
@Immutable public static boolean is_string(Memory memory) { return memory.isString(); }
@Immutable public static boolean is_null(Memory memory) { return memory.isNull(); }
@Immutable public static boolean is_int(Memory memory) { return memory.toValue().type == Memory.Type.INT; }
@Runtime.Immutable(ignoreRefs = true) public static boolean key_exists(Environment env, TraceInfo trace, Memory key, @Reference Memory array) { return array_key_exists(env, trace, key, array); }
@Immutable public static double fmod(double x, double y){ return x % y; }
@Immutable public static Memory strspn(String string, String characters) { return strspnImpl(string, characters, 0, -2147483648, true); }
@Immutable public static Memory strchr(String haystack, char needle) { return strchr(haystack, needle, false); }
@Immutable public static String strtoupper(String string) { return string.toUpperCase(); }
@Immutable public static Memory substr_count(Environment env, TraceInfo trace, String haystack, String needle, int offset) { return substr_count(env, trace, haystack, needle, offset, null); }
@Immutable public static Memory sha1(Environment env, Memory value) { return sha1(env, value, false); }
@Immutable public static String chop(String s) { return rtrim(s); }
@Runtime.Immutable public static String zend_version(){ return Information.LIKE_ZEND_VERSION; }
@Runtime.Immutable public static String chr(int codePoint){ return String.valueOf((char) codePoint); }
@Immutable public static boolean is_double(Memory memory) { return memory.toValue().type == Memory.Type.DOUBLE; }
@Runtime.Immutable public static Memory sizeof(Environment env, TraceInfo trace, Memory var){ return count(env, trace, var, 0); }
@Runtime.Immutable public static Memory count(Environment env, TraceInfo trace, Memory var){ return count(env, trace, var, 0); }
@Immutable public static double round(double value){ return Math.round(value); }