3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $first = new ArrayIterator( array('k1' => 'a' , 'k2' => 'b', 'k3' => 'c', 'k4' => 'd') ); var_dump((array)$first);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.8
array(4) { ["k1"]=> string(1) "a" ["k2"]=> string(1) "b" ["k3"]=> string(1) "c" ["k4"]=> string(1) "d" }