3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = "Ceci n'est pas une URL."; $valid = TRUE; if (in_array(parse_url($value, PHP_URL_SCHEME), [NULL, FALSE], TRUE)) { $valid = FALSE; } var_dump($valid);

preferences:
23.29 ms | 406 KiB | 5 Q