Output of the "Picking random keys of an array with PHP" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • PHP: 8.3

Code execution output:

array(6) {
  ["a"]=>
  string(2) "a-"
  ["b"]=>
  string(2) "b-"
  ["c"]=>
  string(2) "c-"
  ["d"]=>
  string(2) "d-"
  ["foo"]=>
  string(6) "foofoo"
  ["bar"]=>
  string(6) "barbar"
}

array(2) {
  [0]=>
  string(1) "a"
  [1]=>
  string(1) "b"
}