3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=$_GET['first']; for($i=0;$i<$_GET['roop'];$i++) { print("When they buy the coin for ".$x."yen,"); $x=($x+$_GET["cost"])*(100/(100-$_GET["tesu"]); print("they should sell the coin for ".$x."yen,"); } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.2200.00314.91
7.1.60.2800.01332.88
7.1.50.2470.01732.75
7.1.40.2130.01732.32
7.1.30.3200.00732.66
7.1.20.2330.00732.59
7.1.10.2030.01314.51
7.1.00.1430.00714.48
7.0.200.3600.01314.86
7.0.190.3530.01714.56
7.0.180.2070.01314.25
7.0.170.2600.01314.08
7.0.160.2230.01014.10
7.0.150.1930.02014.25
7.0.140.2030.01314.44
7.0.130.2130.00314.38
7.0.120.1970.01314.48
7.0.110.2200.01014.28
7.0.100.1770.01014.18
7.0.90.2370.01714.15
7.0.80.2470.01714.26
7.0.70.2870.01014.15
7.0.60.2700.01314.02
7.0.50.2330.01014.41
7.0.40.2330.01314.51
7.0.30.2170.01714.45
7.0.20.2070.01714.36
7.0.10.2170.01714.33
7.0.00.2770.01314.44

preferences:
139.37 ms | 1394 KiB | 7 Q