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)
8.3.60.0040.01416.75
8.3.50.0070.00716.39
8.3.40.0040.01118.68
8.3.30.0030.01218.53
8.3.20.0000.00720.09
8.3.10.0150.00021.91
8.3.00.0030.00617.66
8.2.180.0120.00618.07
8.2.170.0070.01022.96
8.2.160.0130.00320.39
8.2.150.0070.01124.18
8.2.140.0000.00824.66
8.2.130.0040.00420.39
8.2.120.0040.00426.35
8.2.110.0060.00321.04
8.2.100.0040.00817.84
8.2.90.0030.00619.30
8.2.80.0050.00318.04
8.2.70.0090.00017.63
8.2.60.0040.00417.93
8.2.50.0000.01019.89
8.2.40.0060.00322.09
8.2.30.0000.00721.08
8.2.20.0040.00418.04
8.2.10.0040.00418.14
8.2.00.0050.00218.17
8.1.280.0120.00925.92
8.1.270.0000.00823.96
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00621.28
8.1.230.0080.00417.42
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.36
8.1.190.0030.00617.36
8.1.180.0050.00318.10
8.1.170.0030.00618.53
8.1.160.0030.00318.99
8.1.150.0080.00020.58
8.1.140.0070.00019.57
8.1.130.0030.00318.89
8.1.120.0000.00917.47
8.1.110.0000.00817.42
8.1.100.0050.00317.32
8.1.90.0060.00317.35
8.1.80.0040.00417.46
8.1.70.0030.00317.45
8.1.60.0030.00617.59
8.1.50.0030.00617.37
8.1.40.0050.00317.45
8.1.30.0030.00617.68
8.1.20.0000.00817.66
8.1.10.0000.00717.40
8.1.00.0000.00817.40
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0000.00717.25
8.0.260.0030.00316.77
8.0.250.0000.00616.89
8.0.240.0030.00316.97
8.0.230.0000.01017.04
8.0.220.0030.00316.95
8.0.210.0030.00316.82
8.0.200.0030.00316.92
8.0.190.0040.00416.96
8.0.180.0040.00416.86
8.0.170.0030.00416.88
8.0.160.0030.00317.00
8.0.150.0000.00716.93
8.0.140.0080.00016.82
8.0.130.0000.00513.36
8.0.120.0000.00716.96
8.0.110.0000.00716.84
8.0.100.0040.00416.93
8.0.90.0040.00416.82
8.0.80.0100.01317.01
8.0.70.0040.00416.89
8.0.60.0000.00817.01
8.0.50.0000.00816.90
8.0.30.0070.01217.11
8.0.20.0100.00817.40
8.0.10.0070.00017.06
8.0.00.0120.00816.75
7.4.330.0000.00615.55
7.4.320.0030.00316.51
7.4.300.0030.00316.59
7.4.290.0030.00616.41
7.4.280.0040.00416.49
7.4.270.0020.00516.59
7.4.260.0030.00313.24
7.4.250.0030.00516.54
7.4.240.0030.00316.59
7.4.230.0050.00316.66
7.4.220.0100.01016.49
7.4.210.0030.01016.69
7.4.200.0000.00716.61
7.4.160.0050.01116.50
7.4.150.0070.01517.40
7.4.140.0130.00717.86
7.4.130.0150.00316.60
7.4.120.0050.01516.51
7.4.110.0030.01316.39
7.4.100.0110.00716.39
7.4.90.0140.00316.66
7.4.80.0070.01319.39
7.4.70.0090.00616.61
7.4.60.0180.00316.57
7.4.50.0100.00016.48
7.4.40.0060.01616.48
7.4.30.0120.00916.57
7.4.00.0070.01014.89
7.3.330.0000.00513.23
7.3.320.0050.00013.30
7.3.310.0030.00316.25
7.3.300.0060.00016.30
7.3.290.0060.01216.32
7.3.280.0080.00716.33
7.3.270.0090.01017.40
7.3.260.0100.00616.46
7.3.250.0090.00916.38
7.3.240.0150.00216.47
7.3.230.0140.00316.59
7.3.210.0060.01216.51
7.3.200.0110.00516.49
7.3.190.0110.00416.48
7.3.180.0060.00916.45
7.3.170.0100.00716.41
7.3.160.0120.00316.35
7.3.10.0090.00516.83
7.3.00.0050.00916.72
7.2.330.0140.00416.35
7.2.320.0060.01216.28
7.2.310.0090.00916.64
7.2.300.0120.00616.28
7.2.290.0080.00816.43
7.2.130.0070.00716.76
7.2.120.0070.00416.83
7.2.110.0030.01116.90
7.2.100.0000.01616.74
7.2.90.0080.00416.59
7.2.80.0080.00616.90
7.2.70.0030.01016.78
7.2.60.0060.00616.84
7.2.50.0120.00516.75
7.2.40.0070.00716.70
7.2.30.0060.00716.84
7.2.20.0100.00116.71
7.2.10.0070.00916.83
7.2.00.0090.00517.64
7.1.250.0050.00715.54
7.1.240.0030.01015.41
7.1.230.0070.00715.68
7.1.220.0030.00615.47
7.1.210.0040.00415.41
7.1.200.0030.01415.65
7.1.190.0000.01315.44
7.1.180.0090.00615.78
7.1.170.0040.01115.49
7.1.160.0030.00515.71
7.1.150.0060.00615.79
7.1.140.0030.00615.87
7.1.130.0110.00415.71
7.1.120.0000.01515.71
7.1.110.0080.00515.74
7.1.100.0030.00816.87
7.1.90.0000.01315.80
7.1.80.0140.00015.73
7.1.70.0060.00516.84
7.1.60.0000.01216.90
7.1.50.0050.00816.80
7.1.40.0040.00816.74
7.1.30.0100.00516.85
7.1.20.0050.00916.80
7.1.10.0050.00616.81
7.1.00.0060.00716.87
7.0.330.0030.01015.27
7.0.320.0070.00315.06
7.0.310.0000.01715.43
7.0.300.0100.00315.50
7.0.290.0000.01115.33
7.0.280.0100.00315.51
7.0.270.0070.00315.22
7.0.260.0060.00915.16
7.0.250.0120.00315.30
7.0.240.0000.01415.39
7.0.230.0070.00415.13
7.0.220.0060.01015.15
7.0.210.0040.01115.10
7.0.200.0060.00616.59
7.0.190.0050.00516.63
7.0.180.0030.00516.76
7.0.170.0030.01216.71
7.0.160.0110.00016.51
7.0.150.0090.00816.64
7.0.140.0050.00616.65
7.0.130.0060.00616.75
7.0.120.0070.00216.74
7.0.110.0040.00716.58
7.0.100.0040.00716.63
7.0.90.0100.00116.65
7.0.80.0050.00816.64
7.0.70.0020.00916.69
7.0.60.0080.00116.67
7.0.50.0050.00616.64
7.0.40.0020.01415.68
7.0.30.0050.00515.70
7.0.20.0020.00815.65
7.0.10.0030.00815.73
7.0.00.0020.00915.57
5.6.380.0000.01214.38

preferences:
52.57 ms | 401 KiB | 5 Q