3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t=556; $y=2.25; $h=0; $a=0; $k=0; for ($x = 1; $x <= 6; $x++) { $yuzde=$y+($x*0.50); $t=$t/100*(100-$yuzde); $h=$h+32.5; $a=32.5/$t; echo "$t ($yuzde) - $$h - $a"; echo "\n"; $k=$a+$k; } echo $h/$k;
based on Wc2SW
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.24, 7.4.0 - 7.4.12, 8.0.0
540.71 (2.75) - $32.5 - 0.060106156719868 523.136925 (3.25) - $65 - 0.062125226583843 503.5192903125 (3.75) - $97.5 - 0.06454568995724 482.11972047422 (4.25) - $130 - 0.067410642252992 459.21903375169 (4.75) - $162.5 - 0.070772327824663 435.11003447973 (5.25) - $195 - 0.074693749683022 487.92230526747