3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row = array (2000,7000,3000); $fuzzyprocessormax = 6000; $fuzzyprocessormin = 5000; $rekomendasi = 1000; $arrlength = count($row); for($x=0; $x < $arrlength; $x++) { // Hitung fuzzy processor min if ($row <= $fuzzyprocessormin ) { echo 'Kebutuhan fuzzy 0' ;print array[]; die(); } else if ($fuzzyprocessormin <= $row or $row <= $fuzzyprocessormax ) { $rekomendasi = ($fuzzyprocessormax - $row ) / ($fuzzyprocessormax-$fuzzyprocessormin); echo 'Kebutuhan fuzzy '.$rekomendasi; die(); print array[]; } else if ($row >= $fuzzyprocessormax) { echo 'Kebutuhan fuzzy 1';print array[]; die();} else echo header("Location: ../processor.html"); ?>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '[', expecting '(' in /in/qhe8p on line 20
Process exited with code 255.