3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function match ($ip){ $file_check = '/var/log/iptables.log'; if (file_exists($file_check)) { #$out=shell_exec('awk -v ip="$ip" \'$10 == ip\' /var/log/iptables.log'); #$out=shell_exec("grep 'SRC=10.1.1.103' /var/log/iptables.log || echo \$?"); #var_dump($out); $out = shell_exec("(grep 'SRC=10.1.1.103' /var/log/iptables.log 2>&1 || echo \$?) && echo \$?"); var_dump($out); } else { echo "naah"; exit; } } match($argv[1]);
Output for 5.3.18 - 7.2.0
Notice: Undefined offset: 1 in /in/1XKTe on line 24 naah