3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rx = "^.+(?:@\..+)? $"; $ip = '8.8.8.8'; $mary = 'mary@'.$ip; $g = 'google.com:80/test?abc=123#a1'; $c = 'john:smith@8.8.8.8:80/test?abc=123#a1'; preg_match("/$rx/",$ip,$matches); echo $matches[0],"\n"; preg_match("/$rx/",$mary,$matches); echo $matches[0],"\n"; preg_match("/$rx/",$g,$matches); echo $matches[0],"\n"; preg_match("/$rx/",$c,$matches); echo $matches[0];
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key 0 in /in/XnSHP on line 10 Warning: Undefined array key 0 in /in/XnSHP on line 14 Warning: Undefined array key 0 in /in/XnSHP on line 18 Warning: Undefined array key 0 in /in/XnSHP on line 21

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