3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "NLD,13673, 978, 0, 0;DEU,461312, 21555, 450173, 7007;DNK,322948, 15824, 322948, 50701;SWE,319044, 16715, 17889, 0"; $string2 = "NLD,13673, 978, 0, 0"; if(strstr($string, ";") !== false){ $multipleMatches = explode(';' ,$string); $amountMatches = count($multipleMatches); for($i = 0; $i <= $amountMatches; $i++){ echo $i; } echo $amountMatches; } else { echo "Not found"; }
Output for git.master, git.master_jit, rfc.property-hooks
012344

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:
58.59 ms | 401 KiB | 8 Q