3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_export(json_decode('{"addcslashes":"string","addslashes":"string","bin2hex":"string","chr":"string","chunk_split":"string","convert_cyr_string":"string","convert_uudecode":"string","convert_uuencode":"string","count_chars":"mixed","crc32":"int","crypt":"string","echo":"voidvoid","explode":"array","fprintf":"int","get_html_translation_table":"array","hebrev":"string","hebrevc":"string","hex2bin":"string","html_entity_decode":"string","htmlentities":"string","htmlspecialchars_decode":"string","htmlspecialchars":"string","implode":"string","lcfirst":"string","levenshtein":"int","localeconv":"array","ltrim":"string","md5_file":"string","md5":"string","metaphone":"string","money_format":"string","nl_langinfo":"string","nl2br":"string","number_format":"string","ord":"int","parse_str":"voidvoid","print":"int","printf":"int","quoted_printable_decode":"string","quoted_printable_encode":"string","quotemeta":"string","rtrim":"string","setlocale":"string","sha1_file":"string","sha1":"string","similar_text":"int","soundex":"string","sprintf":"string","sscanf":"mixed","str_getcsv":"array","str_ireplace":"mixed","str_pad":"string","str_repeat":"string","str_replace":"mixed","str_rot13":"string","str_shuffle":"string","str_split":"array","str_word_count":"mixed","strcasecmp":"int","strcmp":"int","strcoll":"int","strcspn":"int","strip_tags":"string","stripcslashes":"string","stripos":"int","stripslashes":"string","stristr":"string","strlen":"int","strnatcasecmp":"int","strnatcmp":"int","strncasecmp":"int","strncmp":"int","strpbrk":"string","strpos":"mixed","strrchr":"string","strrev":"string","strripos":"int","strrpos":"int","strspn":"int","strstr":"string","strtok":"string","strtolower":"string","strtoupper":"string","strtr":"string","substr_compare":"int","substr_count":"int","substr_replace":"mixed","substr":"string","trim":"string","ucfirst":"string","ucwords":"string","vfprintf":"int","vprintf":"int","vsprintf":"string","wordwrap":"string"}', true));
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.21, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
array ( 'addcslashes' => 'string', 'addslashes' => 'string', 'bin2hex' => 'string', 'chr' => 'string', 'chunk_split' => 'string', 'convert_cyr_string' => 'string', 'convert_uudecode' => 'string', 'convert_uuencode' => 'string', 'count_chars' => 'mixed', 'crc32' => 'int', 'crypt' => 'string', 'echo' => 'voidvoid', 'explode' => 'array', 'fprintf' => 'int', 'get_html_translation_table' => 'array', 'hebrev' => 'string', 'hebrevc' => 'string', 'hex2bin' => 'string', 'html_entity_decode' => 'string', 'htmlentities' => 'string', 'htmlspecialchars_decode' => 'string', 'htmlspecialchars' => 'string', 'implode' => 'string', 'lcfirst' => 'string', 'levenshtein' => 'int', 'localeconv' => 'array', 'ltrim' => 'string', 'md5_file' => 'string', 'md5' => 'string', 'metaphone' => 'string', 'money_format' => 'string', 'nl_langinfo' => 'string', 'nl2br' => 'string', 'number_format' => 'string', 'ord' => 'int', 'parse_str' => 'voidvoid', 'print' => 'int', 'printf' => 'int', 'quoted_printable_decode' => 'string', 'quoted_printable_encode' => 'string', 'quotemeta' => 'string', 'rtrim' => 'string', 'setlocale' => 'string', 'sha1_file' => 'string', 'sha1' => 'string', 'similar_text' => 'int', 'soundex' => 'string', 'sprintf' => 'string', 'sscanf' => 'mixed', 'str_getcsv' => 'array', 'str_ireplace' => 'mixed', 'str_pad' => 'string', 'str_repeat' => 'string', 'str_replace' => 'mixed', 'str_rot13' => 'string', 'str_shuffle' => 'string', 'str_split' => 'array', 'str_word_count' => 'mixed', 'strcasecmp' => 'int', 'strcmp' => 'int', 'strcoll' => 'int', 'strcspn' => 'int', 'strip_tags' => 'string', 'stripcslashes' => 'string', 'stripos' => 'int', 'stripslashes' => 'string', 'stristr' => 'string', 'strlen' => 'int', 'strnatcasecmp' => 'int', 'strnatcmp' => 'int', 'strncasecmp' => 'int', 'strncmp' => 'int', 'strpbrk' => 'string', 'strpos' => 'mixed', 'strrchr' => 'string', 'strrev' => 'string', 'strripos' => 'int', 'strrpos' => 'int', 'strspn' => 'int', 'strstr' => 'string', 'strtok' => 'string', 'strtolower' => 'string', 'strtoupper' => 'string', 'strtr' => 'string', 'substr_compare' => 'int', 'substr_count' => 'int', 'substr_replace' => 'mixed', 'substr' => 'string', 'trim' => 'string', 'ucfirst' => 'string', 'ucwords' => 'string', 'vfprintf' => 'int', 'vprintf' => 'int', 'vsprintf' => 'string', 'wordwrap' => 'string', )
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/fjlM0 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/fjlM0 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/fjlM0 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/fjlM0 on line 3

preferences:
241.73 ms | 401 KiB | 310 Q