3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 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
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.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38
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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
334.05 ms | 401 KiB | 452 Q