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
448entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01 Notice: Undefined offset: 8 in /in/fMBcH on line 8 Notice: Undefined offset: 8 in /in/fMBcH on line 8 448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01
Output for hhvm-3.10.0 - 3.12.0
448entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01 Notice: Undefined index: 8 in /in/fMBcH on line 8 Notice: Undefined index: 8 in /in/fMBcH on line 8 448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01
Output for 4.3.0 - 5.2.17
448entre400.01 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 700entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre700.01 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1000entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1000.1 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 18001800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01 Notice: Undefined offset: 8 in /in/fMBcH on line 8 Notice: Undefined offset: 8 in /in/fMBcH on line 8 448entre440.011 e 770entre749.0107 e 1070entre1050.105 e 29701800.01