3v4l.org

run code in 300+ PHP versions simultaneously
<?php $domains = array( 'http://wwwvagrant.royalmail.com/business', 'http://wwwvagrant.parcelforce.com', 'https://www2.postoffice.co.uk', 'http://wwwvagrant.royalmail.com', 'asdfasdfasdf', 'http://eibvagrant.royalmail.com', 'http://wwwvagrant.royalmail.com/payments', ); $doamins = array_filter($domains, function($domain) { return filter_var($domain, FILTER_VALIDATE_URL) !== FALSE; }); print_r($domains); var_dump( filter_var('dsd', FILTER_VALIDATE_UR));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => http://wwwvagrant.royalmail.com/business [1] => http://wwwvagrant.parcelforce.com [2] => https://www2.postoffice.co.uk [3] => http://wwwvagrant.royalmail.com [4] => asdfasdfasdf [5] => http://eibvagrant.royalmail.com [6] => http://wwwvagrant.royalmail.com/payments ) Fatal error: Uncaught Error: Undefined constant "FILTER_VALIDATE_UR" in /in/0SSvI:14 Stack trace: #0 {main} thrown in /in/0SSvI on line 14
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.78 ms | 402 KiB | 8 Q