3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = [ 'https://mon.domaine.fr/le/chemin/vers/le/fichier.php?mes=1&demandes=2', 'ftps://login:password@domain.com/path/to/file.txt', 'http://www.example.com:80/forum/questions/?tag=networking&order=newest#top', '/usr/bin/awk', 'http://localhost/index.html#uneID', 'tel:0780111111' ]; foreach ($urls as $url) { print_r(parse_url($url)); }
Output for 8.1.23 - 8.1.34, 8.2.6 - 8.2.30, 8.3.0 - 8.3.29, 8.4.1 - 8.4.14, 8.4.16, 8.5.0 - 8.5.1
Array ( [scheme] => https [host] => mon.domaine.fr [path] => /le/chemin/vers/le/fichier.php [query] => mes=1&demandes=2 ) Array ( [scheme] => ftps [host] => domain.com [user] => login [pass] => password [path] => /path/to/file.txt ) Array ( [scheme] => http [host] => www.example.com [port] => 80 [path] => /forum/questions/ [query] => tag=networking&order=newest [fragment] => top ) Array ( [path] => /usr/bin/awk ) Array ( [scheme] => http [host] => localhost [path] => /index.html [fragment] => uneID ) Array ( [scheme] => tel [path] => 0780111111 )
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
109.36 ms | 408 KiB | 5 Q