3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Traitement des confitions if(isset($_REQUEST)): $ancienCode = $_POST['ancienCode']; $ancienLib = $_POST['ancienLibelle']; $ancienPrix = $_POST['ancienPrix']; $code = $_POST['code']; $lib = $_POST['libelle']; $prix = $_POST['prix']; if($ancienCode != $code): if (codeExistence($code) == 1): echo("Le code existe déjà ..."); die('<meta http-equiv="refresh" content="2;URL=./backoffice.phtml">'); else: if(($ancienLib != $lib) && ($ancienPrix != $prix)): updateForfait('all', array($ancienCode, $code, $lib, $prix)); else: ($ancienLib != $lib) ? updateForfait('codeAll', array($code, $lib)) : updateForfait('codePrix', array($code, $prix)); endif; endif; else: if(($ancienLib != $lib) && ($ancienPrix != $prix)): updateForfait('libPrix', array($ancienCode, $lib, $prix)); else: ($ancienLib != $lib) ? updateForfait('lib', array($ancienCode, $lib)) : updateForfait('prix', array($ancienCode, $prix)); endif; endif; endif; // Traitement en base function updateForfait($action, $datas = false){ switch ($action) { case "all": // Traitement break; case "codeAll": // Traitement break; case "codePrix": // Traitement break; case "libPrix": // Traitement break; case "lib": // Traitement break; case "prix": // Traitement break; } }
Output for 5.3.0 - 7.1.0
Notice: Undefined index: ancienCode in /in/DsKZ0 on line 7 Notice: Undefined index: ancienLibelle in /in/DsKZ0 on line 8 Notice: Undefined index: ancienPrix in /in/DsKZ0 on line 9 Notice: Undefined index: code in /in/DsKZ0 on line 10 Notice: Undefined index: libelle in /in/DsKZ0 on line 11 Notice: Undefined index: prix in /in/DsKZ0 on line 12
Output for 4.3.0 - 5.2.17
Notice: Undefined index: ancienCode in /in/DsKZ0 on line 7 Notice: Undefined index: ancienLibelle in /in/DsKZ0 on line 8 Notice: Undefined index: ancienPrix in /in/DsKZ0 on line 9 Notice: Undefined index: code in /in/DsKZ0 on line 10 Notice: Undefined index: libelle in /in/DsKZ0 on line 11 Notice: Undefined index: prix in /in/DsKZ0 on line 12