3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i=2;$i<=8;$i++) { $dC += ($nif[$i-1])*(10-$i); } echo "\n$dC"; $dC = $a[0] * 9 + $a[1] * 8 + $a[2] * 7 + $a[3] * 6 + $a[4] * 5 + $a[5] * 4 + $a[6] * 3 + $a[7] * 2; echo "\n$dC";
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: dC in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 0 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 0
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 0 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 0
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: dC in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 Notice: Undefined variable: nif in /in/RfSNv on line 3 0 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 Notice: Undefined variable: a in /in/RfSNv on line 7 0