3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hasil = 12; $kecewa = array(0,11,11.999); $biasa = array(11,11.999,16.111); $puas = array(14,16.111,20); $kb = array_intersect($kecewa, $biasa); $bp = array_intersect($biasa, $puas); print_r($kb); print_r($bp); if ( $hasil >= $bp [1]) { $muBiasa = ($hasil >= $bp[2]) ? "0" : ($hasil <= $bp[2] ? ($hasil - $kb[1]) / ($kb[2] - $kb[1]) : "0.5" ); $muPuas = ($hasil - $bp[1]) / ($bp[2] - $bp[1]); echo " muPuas " .$muPuas; echo " muBiasa " .$muBiasa; } elseif ($hasil < $kb [2] ) { $muKecewa = ($kb[2] - $hasil) / ($kb[2] - $kb[1]); $muBiasa = ($hasil - $kb[1]) / ($kb[2] - $kb[1]); echo "muKecewa " .$muKecewa; echo "muBias " .$muBiasa; }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => 11 [2] => 11.999 ) Array ( [2] => 16.111 ) Warning: Undefined array key 1 in /in/bYfcC on line 13 Warning: Undefined array key 1 in /in/bYfcC on line 17 Warning: Undefined array key 1 in /in/bYfcC on line 17 muPuas 0.7448327229843 muBiasa 1.001001001001

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:
32.43 ms | 401 KiB | 8 Q