3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [-59.33, -58.22, -57.00, -55.34, -50.00, -45.94, -40.23, -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;
Output for git.master, git.master_jit, rfc.property-hooks
-9.77 -5.12

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