3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = "javascript1.js /dev/spacethenjs2.js doublenewline_tab_javascript3.js /dev/javascript4.js javascript5_trailingspaces.js "; var_export($test); echo "\n---\nSee divided and trimmed output: "; var_export(preg_match_all("~[/\w]+\.js\b~", $test, $matches) ? $matches[0] : 'no matches');

preferences:
35 ms | 405 KiB | 5 Q