3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hasil = 52.5; $biasa = array(0,40,65); $puas = array(40,65,80); $istimewa = array(65,80,100); $result = array_intersect($biasa, $puas); print_r($result); echo $array1[1]; if ($hasil >= $result ){ echo "true"; }else{echo "false";}
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [1] => 40 [2] => 65 ) Notice: Undefined variable: array1 in /in/WcGnQ on line 9 false
Output for 5.0.4 - 5.3.27, 5.4.0 - 5.4.19
Array ( [1] => 40 [2] => 65 ) Notice: Undefined variable: array1 in /in/jCK6W on line 9 false
Output for 4.3.1 - 5.0.3
Array ( [1] => 40 [2] => 65 ) Notice: Undefined variable: array1 in /in/jCK6W on line 9 false
Output for 4.3.0
Array ( [1] => 40 [2] => 65 ) Notice: Undefined variable: array1 in /in/WcGnQ on line 9 false