3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "<html>"; echo "<title>HTML with PHP</title>"; echo "<b>My Example</b>"; $apiKey = "c2bcc89a-7355-4909-b729-5ed52f0f7f11"; // get the basic summoner info $result = file_get_contents("http://status.leagueoflegends.com/shards/euw"); $stats = json_decode($result); foreach($stats->services as $stato){ $condizione=$stato->status; $servizio=$stato->name; print $servizio; print " "; print $condizione;print " "; } // var_dump($summoner); print "<i>Print works too!</i>"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
<html><title>HTML with PHP</title><b>My Example</b> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for status.leagueoflegends.com failed: System error in /in/qbuue on line 11 Warning: file_get_contents(http://status.leagueoflegends.com/shards/euw): Failed to open stream: php_network_getaddresses: getaddrinfo for status.leagueoflegends.com failed: System error in /in/qbuue on line 11 Warning: Attempt to read property "services" on null in /in/qbuue on line 16 Warning: foreach() argument must be of type array|object, null given in /in/qbuue on line 16 <i>Print works too!</i>

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:
14.9 ms | 403 KiB | 8 Q