3v4l.org

run code in 200+ PHP versions simultaneously
<?php function series_sum($n) { $quotient = 1; $divident = 1; $increment_num = 3; $sum = 1; for($i=1; $i<$n; $i++){ $divident += $increment_num; $sum += ($quotient/($divident)); } return $sum; } echo series_sum(3);
based on HWuP5

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.4.60.0140.00616.37
7.4.50.0120.00416.30
7.4.40.0100.00616.45
7.4.30.0030.01416.48
7.4.20.0070.01016.24
7.4.10.0120.00516.26
7.4.00.0130.00316.26
7.3.180.0060.01116.25
7.3.170.0050.01116.20
7.3.160.0130.00316.31
7.3.150.0030.01316.27
7.3.140.0090.00616.42
7.3.130.0100.00616.15
7.3.120.0000.01616.22
7.3.110.0110.00616.30
7.3.100.0130.00516.44
7.3.90.0030.01416.45
7.3.80.0040.01416.41
7.3.70.0090.01016.39
7.3.60.0140.00816.35
7.3.50.0120.00916.13
7.3.40.0060.01016.30
7.3.30.0000.01516.23
7.3.20.0100.00616.43
7.3.10.0080.00816.25
7.3.00.0130.00316.30
7.2.310.0040.01316.52
7.2.300.0070.01016.72
7.2.290.0110.00516.59
7.2.280.0110.00616.66
7.2.270.0070.01016.50
7.2.260.0090.00616.55
7.2.250.0120.00416.43
7.2.240.0030.01516.60
7.2.230.0060.01216.66
7.2.220.0070.01016.47
7.2.210.0120.00616.57
7.2.200.0150.00716.60
7.2.190.0060.01116.46
7.2.180.0100.00716.22
7.2.170.0030.01316.62
7.2.160.0060.01116.46
7.2.150.0070.01116.72
7.2.140.0060.00916.63
7.2.130.0100.00616.60
7.2.120.0080.00916.52
7.2.110.0060.01216.41
7.2.100.0160.00316.61
7.2.90.0090.00916.55
7.2.80.0140.00416.57
7.2.70.0200.00616.69
7.2.60.0030.01516.55
7.2.50.0080.00916.48
7.2.40.0120.00616.69
7.2.30.0100.00916.68
7.2.20.0140.01116.43
7.2.10.0130.00616.45
7.2.00.0060.01116.56