3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1110; $b = 370; $c = 6171.6; $h = 71.1; $i = -50; // undef $k = 0; // undef $l = 0; // undef $step = 0.001; // Auflösung für $i $i_max = 100; // um keine Endlosschleife zu produzieren $epsilon = 0.001; // Fehlertoleranz $found = false; do { $k = 0.9942; $l = 0.998670248976177; $tmp = (556 / ($h / (545.223880597015 / 1000 * $k * $l))); $found = (abs($i - $tmp) <= $epsilon); if (!$found) { $i += $step; } if ($i > $i_max) { throw new Exception('Unable to calculate $i'); } } while (!$found); $g = ceil($h / (545.223880597015 / 1000 * $l * $k)); //$i = 556 / $g; // ??? $i haben wir schon $j = $g * $b / 1000 * $a / 100 * 1; $e = ($i - $b / 1000) * $a / 100; $f = $i * $a / 100; $d = $c - $j; foreach (range('a', 'l') as $var) { echo $var . ' = '; var_dump($$var); echo '<br />'; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
a = int(1110) <br />b = int(370) <br />c = float(6171.6) <br />d = float(5629.476000000001) <br />e = float(42.87929999971057) <br />f = float(46.98629999971056) <br />g = float(132) <br />h = float(71.1) <br />i = float(4.2329999999739245) <br />j = float(542.124) <br />k = float(0.9942) <br />l = float(0.998670248976177) <br />

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:
44.68 ms | 402 KiB | 8 Q