3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search_a = "A"; $s="domain.io. A 8.8.8.8 www CNAME domain.io"; $lines = explode(" ", $s); $domain = "domain.io"; foreach($lines as $a) { if (preg_match("/\b".$search_a."\b/i", $a)) { $a_array = "$a"; $a_record_output = preg_split('/(.'.$domain.'.|\s)/', $a_array, -1, PREG_SPLIT_NO_EMPTY); print_r($a_record_output); } }
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => domain.io. [1] => A [2] => 8.8.8.8 )

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:
28.51 ms | 405 KiB | 5 Q