3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); # works $json = file_get_contents('https://creativecommons.tankerkoenig.de/json/detail.php?id=fb79c457-543a-4ff6-ba70-cd270ac2110a&apikey=00000000-0000-0000-0000-000000000001&_=1440230150968'); $x = json_decode($json); $preis_e5 = $x->station->e5; $preis_diesel = $x->station->diesel; echo $preis_e5; echo $preis_diesel; echo "<pre>"; print_r( $x ); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/cb6so on line 4 Warning: file_get_contents(): open_basedir restriction in effect. File(https://creativecommons.tankerkoenig.de/json/detail.php?id=fb79c457-543a-4ff6-ba70-cd270ac2110a&apikey=00000000-0000-0000-0000-000000000001&_=1440230150968) is not within the allowed path(s): (/tmp:/in:/etc) in /in/cb6so on line 4 Warning: file_get_contents(https://creativecommons.tankerkoenig.de/json/detail.php?id=fb79c457-543a-4ff6-ba70-cd270ac2110a&apikey=00000000-0000-0000-0000-000000000001&_=1440230150968): Failed to open stream: Operation not permitted in /in/cb6so on line 4 Warning: Attempt to read property "station" on null in /in/cb6so on line 6 Warning: Attempt to read property "e5" on null in /in/cb6so on line 6 Warning: Attempt to read property "station" on null in /in/cb6so on line 7 Warning: Attempt to read property "diesel" on null in /in/cb6so on line 7 <pre>

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