3v4l.org

run code in 300+ PHP versions simultaneously
<?php header ('Transfer-encoding: chunked'); flush(); ob_start(); $commandes = [ ['rm', '/etc/localtime'], ['ln', '-s', '/usr/share/zoneinfo/Europe/Paris', '/etc/localtime'], ['apt-get', 'update'], ['apt-get', '-y', 'upgrade'], ['debconf-set-selections', '/root/ldap_auth_config.debconf'], ['apt-get', 'install', '-y', 'ldap-auth-client', 'nscd'], ['auth-client-config', '-t','nss', '-p', 'lac_ldap'], ['apt-get', '-y', 'install', 'php', 'apache2', 'libapache2-mod-php'], ]; foreach($commandes as $command) { $outtext = sprintf ("Executing : %s\r\n", implode (' ', $command)); printf ("%x\r\n%s", strlen($outtext), $outtext); ob_flush(); flush(); }
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 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.4, 8.3.6
1f Executing : rm /etc/localtime 43 Executing : ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime 1c Executing : apt-get update 20 Executing : apt-get -y upgrade 43 Executing : debconf-set-selections /root/ldap_auth_config.debconf 36 Executing : apt-get install -y ldap-auth-client nscd 33 Executing : auth-client-config -t nss -p lac_ldap 3f Executing : apt-get -y install php apache2 libapache2-mod-php
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 1f Executing : rm /etc/localtime 43 Executing : ln -s /usr/share/zoneinfo/Europe/Paris /etc/localtime 1c Executing : apt-get update 20 Executing : apt-get -y upgrade 43 Executing : debconf-set-selections /root/ldap_auth_config.debconf 36 Executing : apt-get install -y ldap-auth-client nscd 33 Executing : auth-client-config -t nss -p lac_ldap 3f Executing : apt-get -y install php apache2 libapache2-mod-php

preferences:
163.76 ms | 403 KiB | 175 Q