3v4l.org

run code in 300+ PHP versions simultaneously
<?php $config = json_decode('{"db":{"driver":"mysql","database":"store_derpstation","host":"lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com","username":"derpstation","password":"b92db464d96d30b5cb17276c079d562d","charset":"utf8","collation":"utf8_unicode_ci"},"locale":"en","timezone":"America\/Vancouver","active theme":"alpha","themes":"\/var\/www\/staging\/storage\/0558ef36323a2b17dc5be707a4222b4f\/themes\/","resources":"\/var\/www\/staging\/storage\/0558ef36323a2b17dc5be707a4222b4f\/resources\/","uploaded":"\/var\/www\/staging\/storage\/0558ef36323a2b17dc5be707a4222b4f\/uploaded\/","php views":true,"payment entered":false,"paid until":false}'); var_dump($config->{"payment entered"}); var_dump($config);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 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
bool(false) object(stdClass)#2 (10) { ["db"]=> object(stdClass)#1 (7) { ["driver"]=> string(5) "mysql" ["database"]=> string(17) "store_derpstation" ["host"]=> string(51) "lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com" ["username"]=> string(11) "derpstation" ["password"]=> string(32) "b92db464d96d30b5cb17276c079d562d" ["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/0558ef36323a2b17dc5be707a4222b4f/themes/" ["resources"]=> string(68) "/var/www/staging/storage/0558ef36323a2b17dc5be707a4222b4f/resources/" ["uploaded"]=> string(67) "/var/www/staging/storage/0558ef36323a2b17dc5be707a4222b4f/uploaded/" ["php views"]=> bool(true) ["payment entered"]=> bool(false) ["paid until"]=> bool(false) }
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.28
bool(false) object(stdClass)#1 (10) { ["db"]=> object(stdClass)#2 (7) { ["driver"]=> string(5) "mysql" ["database"]=> string(17) "store_derpstation" ["host"]=> string(51) "lemonstand.cnxuvxihm3xz.us-east-1.rds.amazonaws.com" ["username"]=> string(11) "derpstation" ["password"]=> string(32) "b92db464d96d30b5cb17276c079d562d" ["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/0558ef36323a2b17dc5be707a4222b4f/themes/" ["resources"]=> string(68) "/var/www/staging/storage/0558ef36323a2b17dc5be707a4222b4f/resources/" ["uploaded"]=> string(67) "/var/www/staging/storage/0558ef36323a2b17dc5be707a4222b4f/uploaded/" ["php views"]=> bool(true) ["payment entered"]=> bool(false) ["paid until"]=> bool(false) }
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/l1EHP 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/l1EHP 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/l1EHP 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/l1EHP on line 3

preferences:
285.16 ms | 401 KiB | 356 Q