3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $config = json_decode('{"db":{"driver":"mysql","database":"store_bigstore","host":"lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com","username":"bigstore","password":"fa5f6f72e764343b3be2a56056e177d7","charset":"utf8","collation":"utf8_unicode_ci"},"locale":"en","timezone":"America\/Vancouver","active theme":"alpha","themes":"\/var\/www\/staging\/storage\/cb3b3941813daa5f873065a5e7a2800b\/themes\/","resources":"\/var\/www\/staging\/storage\/cb3b3941813daa5f873065a5e7a2800b\/resources\/","uploaded":"\/var\/www\/staging\/storage\/cb3b3941813daa5f873065a5e7a2800b\/uploaded\/","php views":true}'); var_dump($config);
Output for 7.0.0 - 7.1.0
object(stdClass)#2 (8) { ["db"]=> object(stdClass)#1 (7) { ["driver"]=> string(5) "mysql" ["database"]=> string(14) "store_bigstore" ["host"]=> string(51) "lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com" ["username"]=> string(8) "bigstore" ["password"]=> string(32) "fa5f6f72e764343b3be2a56056e177d7" ["charset"]=> string(4) "utf8" ["collation"]=> string(15) "utf8_unicode_ci" } ["locale"]=> string(2) "en" ["timezone"]=> string(17) "America/Vancouver" ["active theme"]=> string(5) "alpha" ["themes"]=> string(65) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/themes/" ["resources"]=> string(68) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/resources/" ["uploaded"]=> string(67) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/uploaded/" ["php views"]=> bool(true) }
Output for 5.2.0 - 5.6.23, hhvm-3.10.0 - 3.12.0
object(stdClass)#1 (8) { ["db"]=> object(stdClass)#2 (7) { ["driver"]=> string(5) "mysql" ["database"]=> string(14) "store_bigstore" ["host"]=> string(51) "lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com" ["username"]=> string(8) "bigstore" ["password"]=> string(32) "fa5f6f72e764343b3be2a56056e177d7" ["charset"]=> string(4) "utf8" ["collation"]=> string(15) "utf8_unicode_ci" } ["locale"]=> string(2) "en" ["timezone"]=> string(17) "America/Vancouver" ["active theme"]=> string(5) "alpha" ["themes"]=> string(65) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/themes/" ["resources"]=> string(68) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/resources/" ["uploaded"]=> string(67) "/var/www/staging/storage/cb3b3941813daa5f873065a5e7a2800b/uploaded/" ["php views"]=> bool(true) }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/8SSUn 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/8SSUn on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/8SSUn 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/8SSUn on line 3