3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Gengi { function __construct($currency=null) { $this->url = "http://api02.gengi.is/currency/"; if ( !is_null( $currency ) ): $this->url .= $currency; endif; $this->curr = $currency; } public function request() { $result = file_get_contents($this->url); var_dump(json_decode($result,true)); } } $orig = "{query}"; $gengi = new Gengi($orig); $json = $gengi->request();
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Gengi::$url is deprecated in /in/7NQDi on line 5 Deprecated: Creation of dynamic property Gengi::$curr is deprecated in /in/7NQDi on line 10 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api02.gengi.is failed: System error in /in/7NQDi on line 14 Warning: file_get_contents(http://api02.gengi.is/currency/{query}): Failed to open stream: php_network_getaddresses: getaddrinfo for api02.gengi.is failed: System error in /in/7NQDi on line 14 NULL

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:
35.58 ms | 402 KiB | 8 Q