3v4l.org

run code in 300+ PHP versions simultaneously
<?php $max_parcelas = 10; $arr = []; $range = range(1,$max); $inicial = 2000; $cheio = 2900; $dif = $inicial - $cheio; foreach($range as $x) { $log = log($x, $max_parcelas); $val = $log * $dif; $arr[$x] = ['log' => $log, 'valor' => $val]; } print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $max in /in/AhXJL on line 5 Array ( [1] => Array ( [log] => 0 [valor] => -0 ) [0] => Array ( [log] => -INF [valor] => INF ) )

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:
46.54 ms | 402 KiB | 8 Q