3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=array("ip","icmp","ggp","tcp", "egp","pup","udp","hmp","xns-idp", "rdp","rvd" ); //Reads the names of protocols into an array.. for($i=0;$i<11;$i++) { $proname=$arr[$i]; echo $proname .":", getprotobyname ($proname)."<br />\n"; } $format = "%6s %s\n<br />"; for ($number = 0; $number < 255; $number++) { if (getprotobynumber ($number)) printf ($format, " $number-->", getprotobynumber ($number)); }
Output for git.master, git.master_jit, rfc.property-hooks
ip:<br /> icmp:<br /> ggp:<br /> tcp:<br /> egp:<br /> pup:<br /> udp:<br /> hmp:<br /> xns-idp:<br /> rdp:<br /> rvd:<br />

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