3v4l.org

run code in 500+ PHP versions simultaneously
<?php $phones = [ '2345678', '00000000', '00100000', '123456789', '000000000', '12345678901234567', ]; foreach ($phones as $phone) { echo (preg_match('/^(?=0*[1-9])\d{8,16}$/', $phone) ? 'Pass' : 'Fail') . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
Fail Fail Pass Pass Fail Fail

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:
40.23 ms | 1100 KiB | 4 Q