3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo `which mysql` . PHP_EOL; echo `which mysqldump` . PHP_EOL;
Output for 5.6.28, 7.0.14 - 7.1.0
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.25, 7.0.0 - 7.0.10
Warning: shell_exec(): Unable to execute 'which mysql' in /in/3cLG0 on line 2 Warning: shell_exec(): Unable to execute 'which mysqldump' in /in/3cLG0 on line 3
Output for hhvm-3.10.0 - 3.12.0
Failed to exec: `which mysql' Failed to exec: `which mysqldump'
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.1
Warning: shell_exec(): Unable to execute 'which mysql' in /in/3cLG0 on line 2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cLG0 on line 2 PHP_EOL Warning: shell_exec(): Unable to execute 'which mysqldump' in /in/3cLG0 on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cLG0 on line 3 PHP_EOL
Output for 4.3.0 - 4.3.1
Warning: shell_exec() [http://www.php.net/function.shell-exec]: Unable to execute 'which mysql' in /in/3cLG0 on line 2 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cLG0 on line 2 PHP_EOL Warning: shell_exec() [http://www.php.net/function.shell-exec]: Unable to execute 'which mysqldump' in /in/3cLG0 on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/3cLG0 on line 3 PHP_EOL