3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result = []; $array = [ [116.01, 146.00], [92.00, 122.02], [308.00, 278.00] ]; foreach($array as $key => $value) { $result[$key] = ($value[0] > $value[1]); } echo "result:" . PHP_EOL; echo var_dump($result);
based on NWDkp
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.28 - 7.2.9
result: array(3) { [0]=> bool(false) [1]=> bool(false) [2]=> bool(true) }