3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1,2,3); $splarr = SplFixedArray::fromArray($arr); var_dump($splarr == $arr); // Not Equal (should be) var_dump((array)$splarr == $arr); // Equal var_dump($splarr->toArray() == $arr); // Equal
Output for 5.6.0 - 5.6.24, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.21, 7.4.0 - 7.4.10, 8.0.0alpha1 - beta3
bool(false) bool(true) bool(true)