3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reajuste = array(1.12, 1.10, 1.10, 1.07, 1.07, 1.05, 1.65, 1); $valor = array(400, 400.01, 700, 700.01, 1000, 1000.1, 1800, 1800.01); for ($i = 0; $i<=8; $i++) { $valor[$i] = $valor[$i] * $reajuste[i]; echo $valor [0]; echo "entre" . $valor[1] . " e ". $valor[2]; echo "entre" . $valor[3] . " e ". $valor[4]; echo "entre" . $valor[5] . " e ". $valor[6]; echo $valor[7]; }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "i" in /in/EbV8m:8 Stack trace: #0 {main} thrown in /in/EbV8m on line 8
Process exited with code 255.

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:
42.06 ms | 401 KiB | 8 Q