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 ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cb6so
function name:  (null)
number of ops:  24
compiled vars:  !0 = $json, !1 = $x, !2 = $preis_e5, !3 = $preis_diesel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'https%3A%2F%2Fcreativecommons.tankerkoenig.de%2Fjson%2Fdetail.php%3Fid%3Dfb79c457-543a-4ff6-ba70-cd270ac2110a%26apikey%3D00000000-0000-0000-0000-000000000001%26_%3D1440230150968'
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !0, $5
    5     7        INIT_FCALL                                               'json_decode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !1, $7
    6    11        FETCH_OBJ_R                                      ~9      !1, 'station'
         12        FETCH_OBJ_R                                      ~10     ~9, 'e5'
         13        ASSIGN                                                   !2, ~10
    7    14        FETCH_OBJ_R                                      ~12     !1, 'station'
         15        FETCH_OBJ_R                                      ~13     ~12, 'diesel'
         16        ASSIGN                                                   !3, ~13
    9    17        ECHO                                                     !2
   10    18        ECHO                                                     !3
   11    19        ECHO                                                     '%3Cpre%3E'
   12    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
183.15 ms | 1395 KiB | 21 Q