3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pizza = 'http://www.tuin.co.uk/images/D/2-10.jpg,http://www.tuin.co.uk/images/D/40.0535-t02-12%20Skov.jpg,http://www.tuin.co.uk/images/D/28mm%20log-04.jpg,http://www.tuin.co.uk/images/D/Skov-log-cabin.jpg,http://www.tuin.co.uk/images/D/Skov-log-cabin-01.jpg,http://www.tuin.co.uk/images/D/Skove-log-cabin.jpg,http://www.tuin.co.uk/images/D/skov-28mm-log-'; $pieces = explode(",", $pizza); echo count($pieces); foreach ($pieces as $arr) { if (filter_var($arr, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED)) { echo $arr.'<br>'; } else echo $arr.'<br><br>'; }
Output for git.master, git.master_jit, rfc.property-hooks
7 Fatal error: Uncaught Error: Undefined constant "FILTER_FLAG_SCHEME_REQUIRED" in /in/I3UdZ:7 Stack trace: #0 {main} thrown in /in/I3UdZ on line 7
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:
64.19 ms | 401 KiB | 8 Q