3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $res = array( array('id'=>0), array('id'=>0), array('id'=>0), array('id'=>0), array('id'=>0), ); $i = 0; while ($i < count($res)){ if($i%2==0){ $res[$i]['odd'] = true; } else { $res[$i]['odd'] = false; } } print_r($res);

Abusive script

This script was stopped while abusing our resources