3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ddi = array(0 => 16, 1 => 18); $di_array_count = count($ddi); for($c=0; $c<$di_array_count; $c++){ $key = array_keys($ddi); $val= $ddi[0]; print_r($val); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1616