
Вот такое чудо нашел, так что давайте тестировать

PHP.JS это библиотека в которой написаны функции аналоги PHP функций, всего в себе она содержит 190 функций эквивалентных PHP функциям.
Согласитесь - если вы много пишите на PHP, то при написании скрипта часто не хватает того же str_replace, explode и других, вот список тех функций которым был создан аналог на JavaScript.
поддерживает как я понял вот такие функции:
abs
acosh
acos
addslashes
array
array_change_key_case
array_chunk
array_combine
array_count_values
array_diff
array_diff_assoc
array_diff_key
array_fill
array_flip
array_keys
array_key_exists
array_map
array_pad
array_pop
array_product
array_push
array_rand
array_reduce
array_reverse
array_search
array_shift
array_sum
array_unique
array_unshift
array_values
array_walk
array_walk_recursive
asinh
asin
atanh
atan
base64_decode
base64_encode
basename
base_convert
bin2hex
bindec
call_user_func_array
ceil
checkdate
chr
compact
cosh
cos
count
count_chars
crc32
create_function
date
decbin
dechex
decoct
defined
deg2rad
dirname
echo
empty
end
explode
exp
file
file_get_contents
floatval
floor
fmod
function_exists
getrandmax
get_class
get_html_translation_table
get_included_files
hexdec
htmlentities
htmlspecialchars
htmlspecialchars_decode
html_entity_decode
http_build_query
hypot
implode
include
include_once
intval
in_array
ip2long
isset
is_array
is_bool
is_finite
is_infinite
is_int
is_nan
is_null
is_numeric
is_object
is_string
join
krsort
ksort
lcg_value
levenshtein
log10
log
long2ip
ltrim
max
md5
md5_file
min
mktime
mt_getrandmax
mt_rand
nl2br
number_format
octdec
ord
parse_str
pi
pow
preg_quote
printf
print_r
rad2deg
rand
range
require
require_once
reset
round
rsort
rtrim
serialize
setcookie
sha1
sha1_file
shuffle
sinh
sin
sizeof
sleep
sort
soundex
split
sprintf
sqrt
strcasecmp
strchr
strcmp
stripos
stripslashes
strip_tags
stristr
strlen
strnatcmp
strncasecmp
strpbrk
strpos
strrev
strripos
strrpos
strstr
strtolower
strtoupper
str_ireplace
str_pad
str_repeat
str_replace
str_rot13
str_split
substr
substr_count
tanh
tan
time
trim
ucfirst
ucwords
unserialize
urldecode
urlencode
utf8_decode
utf8_encode
var_export
wordwrap