3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 7.2.29 - 7.2.33, 7.3.16 - 7.3.33, 7.4.3 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: exec(): Unable to fork [php composer.phar install] in /in/SISVN on line 7 deleting vendor Warning: exec(): Unable to fork [rm -rf /home/admin/teste/vendor] in /in/SISVN on line 9 deleting .lock Warning: exec(): Unable to fork [rm /home/admin/teste/composer.lock] in /in/SISVN on line 11 sleeping 2 secs.
Output for 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.3.0 - 7.3.12, 7.4.0
deleting vendor deleting .lock sleeping 2 secs.
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.3.11, 4.4.0 - 4.4.9, 5.0.2 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 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

preferences:
189.42 ms | 402 KiB | 327 Q