3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); try { $ismarketing = 'n'; $arraydnismap= array("8663582353","2032007654","8602498731","2292348712","4044456908","4782549845","6785418203","7063898537","7702998468","9122095105","2525589042","3362907267","7042515891","8282027063","9102169913","9192137973","9802221556"); $dnis = $_GET["dnis"]; if (in_array($dnis,$arraydnismap)) { $ismarketing = 'y'; } print 'mark='.$ismarketing; } catch(Exception $e) { echo $e; } ob_flush(); ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: dnis in /in/OfYuo on line 8 mark=n
Output for 5.0.0 - 5.2.17
Notice: Undefined index: dnis in /in/OfYuo on line 8 mark=n
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/OfYuo on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/OfYuo on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/OfYuo on line 5
Process exited with code 255.