3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ( $i = 0; $i < 3000; $i++ ) { $test_array[ "key$i" ] = $i; } $test1 = $test_array; for ( $i = 0; $i < 3000; $i++ ) { $k = key($test1); $dummy = $test1[$k]; unset($test1[$k]); }
based on tF14F
Output for 4.3.0 - 7.2.6