3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [-59.33, -58.22, -57.00, -55.34, -50.00, -45.94, -40.23, -30.44, -20.01, -10.29, -5.12, 0, 1, 3, 5, 7, 19, 20,25,26, 32, 38, 40, 45, 50, 55]; $b = -25; $c = array_map(function($value) use($b){ return abs(bcsub($value, $b, 2)); }, $a); sort($c); echo $c[0]+$b; echo "\n"; echo $c[1]+$b;
based on cuk5q
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
-20.01 -19.56