3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $precoBase = (float)71612.54; $sumLotes= array_sum(array((float)4568.20,(float)26370.24,(float)13986.00,(float)1745.60,(float)18295.00,(float)6647.50)); if ($precoBase === $sumLotes) { // Comparing value and data type. echo 'OK'; }else{ echo 'LOLPHP - NOK' . PHP_EOL; var_dump($precoBase,$sumLotes); }
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.6
LOLPHP - NOK float(71612.54) float(71612.54)
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/jm7pj on line 9 LOLPHP - NOKPHP_EOLfloat(71612.54) float(71612.54)