Output of the "Creating a fixed-size array with PHP" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 3.0.1
  • PHP: 8.1

Code execution output:

object(SplFixedArray)#1801 (5) {
  [0]=>
  NULL
  [1]=>
  NULL
  [2]=>
  NULL
  [3]=>
  string(3) "foo"
  [4]=>
  string(3) "bar"
}
Size of array: 5

Error: Index invalid or out of range

array(5) {
  [0]=>
  NULL
  [1]=>
  NULL
  [2]=>
  NULL
  [3]=>
  string(3) "foo"
  [4]=>
  string(3) "bar"
}