3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 40; $kecewa = array(0,40,65); $biasa = array(40,65,80); $puas = array(65,80,100); $kb = array_intersect($kecewa, $biasa); $bp = array_intersect($biasa, $puas); print_r($kb); print_r($bp); // antara 65 - 80 if ( $hasil >= $bp[1] && $hasil <= $bp[2] ) { $muBiasa = ($hasil - $kb[1]) / ($kb[2]-$kb[1]); $muPuas = ($hasil - $bp[1]) / ($bp[2]-$bp[1]); echo " muPuas " .$muPuas; echo " muBiasa " .$muBiasa; } else { echo "False"; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => 40 [2] => 65 ) Array ( [1] => 65 [2] => 80 ) False

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.17 ms | 401 KiB | 8 Q