3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = <<<X eyJleHBlcmltZW50SWQiOiJtanQwX3VSaVNQdXJOLXNBMThsclFRIiwiY2hvc2VuVmFyaWF0aW9uIjoiMSIsInVzZXJJc0luY2x1ZGVkIjoiMSJ9 X; $x = json_decode(base64_decode($x), true); $x['chosenVariation'] = 0; $encoded = base64_encode(json_encode($x)); var_dump($encoded); var_dump(json_decode(base64_decode($x), true));
Output for git.master, git.master_jit, rfc.property-hooks
string(112) "eyJleHBlcmltZW50SWQiOiJtanQwX3VSaVNQdXJOLXNBMThsclFRIiwiY2hvc2VuVmFyaWF0aW9uIjowLCJ1c2VySXNJbmNsdWRlZCI6IjEifQ==" Fatal error: Uncaught TypeError: base64_decode(): Argument #1 ($string) must be of type string, array given in /in/ggA1T:14 Stack trace: #0 /in/ggA1T(14): base64_decode(Array) #1 {main} thrown in /in/ggA1T on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.25 ms | 401 KiB | 8 Q