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}'); $config->["payment entered"]; var_dump($config);
Output for 5.4.0 - 5.4.15
Parse error: syntax error, unexpected '[', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in 8Slak on line 5
Process exited with code 255.
Output for 5.3.25
Parse error: syntax error, unexpected '[', expecting T_STRING or T_VARIABLE or '{' or '$' in /in/7l7Tt on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected '[', expecting T_STRING or T_VARIABLE or '{' or '$' in 8Slak on line 5
Process exited with code 255.

preferences:
178.87 ms | 1395 KiB | 49 Q