3v4l.org

run code in 300+ PHP versions simultaneously
<?php $totalLoan = "4000000"; $interest= "5"; //<-- 5% $loan = 4; $instalment = $totalLoan / $loan; $priceLoan = $instalment + $totalLoan * $interest / 100; $fixedDateEveryMonth = 28; $start = new DateTime(date('Y-m-') . $fixedDateEveryMonth); for ($i = 1; $i <= $loan; $i++) { $start->add(new DateInterval("P1M")); $dateLoan = $start->format('d-M-Y'); echo "$dateLoan - " . number_format($priceLoan, 0) . "\n"; $priceLoan = $instalment; }
Output for git.master, git.master_jit, rfc.property-hooks
28-Jan-2021 - 1,200,000 28-Feb-2021 - 1,000,000 28-Mar-2021 - 1,000,000 28-Apr-2021 - 1,000,000

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
117 ms | 405 KiB | 5 Q