3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 01800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 00 Notice: Undefined offset: 8 in /in/EbV8m on line 8 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 00
Output for hhvm-3.10.0 - 3.12.0
Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 01800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 000entre0 e 0entre0 e 0entre0 e 00
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 700entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre700.01 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 1000entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre1000.1 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 18001800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 01800.01 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 00 Notice: Undefined offset: 8 in /in/EbV8m on line 8 Notice: Use of undefined constant i - assumed 'i' in /in/EbV8m on line 8 Notice: Undefined index: i in /in/EbV8m on line 8 0entre0 e 0entre0 e 0entre0 e 00