3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $resultat = array(1,3,4,2,"test", "hello", "world"); for ($i=0; $i <= count($resulat); $i++) { if ($j = $i % 2) { echo "$i MODULO 2, RESTE: " . $j . "\r\n"; } else { echo "$i est MODULO 2"; $i = 0; } }
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: resulat in /in/tV0CJ on line 4 0 est MODULO 2 Notice: Undefined variable: resulat in /in/tV0CJ on line 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: resulat in /in/tV0CJ on line 4 0 est MODULO 2 Notice: Undefined variable: resulat in /in/tV0CJ on line 4