3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = <<<X eyJleHBlcmltZW50SWQiOiJtanQwX3VSaVNQdXJOLXNBMThsclFRIiwiY2hvc2VuVmFyaWF0aW9uIjoiMSIsInVzZXJJc0luY2x1ZGVkIjoiMSJ9 X; $x = json_decode(base64_decode($x), true); $x['chosenVariation'] = 0; var_dump(base64_encode(json_encode($x)));
based on NJ40c