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

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch php-master
1.3928571428571
Output for branch php-master+jit
1.3928571428571
Output for branch php-master+opcache
1.3928571428571

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