3v4l.org

run code in 500+ PHP versions simultaneously
<?php for ($i = 0; $i < 1000; $i++) { $pathname = "sites/all/modules/foo$i/foo_sub$i/foo_sub$i.info.yml"; assert($pathname[0] !== '/' && array_key_exists('path', parse_url($pathname)) && count(array_keys(parse_url($pathname))) === 1, 'The relative path and filename is invalid. A path relative to the Drupal root is expected, for example: "core/modules/node/node.info.yml".'); }

preferences:
127.8 ms | 1635 KiB | 5 Q