3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array('red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet'); foreach ($x as $key => $value) { echo $key.' '.$value."\n"; if (strlen($value) < 6) unset($x[$key]); } print_r($x);

preferences:
51.43 ms | 402 KiB | 5 Q