3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(0); ini_set('memory_limit', '16M'); do { exec("php composer.phar install"); echo "deleting vendor" . PHP_EOL; exec("rm -rf /home/admin/teste/vendor"); echo "deleting .lock" . PHP_EOL; exec("rm /home/admin/teste/composer.lock"); echo "sleeping 2 secs." . PHP_EOL; sleep(2); break; } while (true);
based on JIQXG
Output for 5.4.45 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
deleting vendor deleting .lock sleeping 2 secs.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.38 - 5.4.44
deleting vendor deleting .lock sleeping 2 secs. sh: 1: php: not found sh: 1: rm: not found sh: 1: rm: not found
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.4.37
Warning: ini_set() has been disabled for security reasons in /in/SISVN on line 3 deleting vendor deleting .lock sleeping 2 secs. sh: 1: php: not found sh: 1: rm: not found sh: 1: rm: not found
Output for 4.3.5 - 4.3.9, 5.0.0 - 5.0.1
Warning: ini_set() has been disabled for security reasons in /in/SISVN on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 8 deleting vendorPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 10 deleting .lockPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 12 sleeping 2 secs.PHP_EOLsh: 1: php: not found sh: 1: rm: not found sh: 1: rm: not found
Output for 4.3.1 - 4.3.4
Warning: ini_set,pcntl_fork() has been disabled for security reasons in /in/SISVN on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 8 deleting vendorPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 10 deleting .lockPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 12 sleeping 2 secs.PHP_EOLsh: 1: php: not found sh: 1: rm: not found sh: 1: rm: not found
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 8 deleting vendorPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 10 deleting .lockPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/SISVN on line 12 sleeping 2 secs.PHP_EOL