3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function cube($n) { return $n * $n * $n; } $data = range(0, 15); $cubed = array(); foreach($data as $n) { $cubed[] = $n * $n * $n; }
Output for 4.3.0 - 7.1.0