3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = array( "0123333333", "asdfasfasdf", "01234555555" ); foreach($lines as $line){ $len = strlen($line); if(($len==10||$len==11)&&"0123"===substr($line, 0, 4)) echo "valid: $line \n"; }
Output for git.master, git.master_jit, rfc.property-hooks
valid: 0123333333 valid: 01234555555

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