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>"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/qbuue
function name:  (null)
number of ops:  27
compiled vars:  !0 = $apiKey, !1 = $result, !2 = $stats, !3 = $stato, !4 = $condizione, !5 = $servizio
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Chtml%3E'
    3     1        ECHO                                                     '%3Ctitle%3EHTML+with+PHP%3C%2Ftitle%3E'
    4     2        ECHO                                                     '%3Cb%3EMy+Example%3C%2Fb%3E'
    7     3        ASSIGN                                                   !0, 'c2bcc89a-7355-4909-b729-5ed52f0f7f11'
   11     4        INIT_FCALL                                               'file_get_contents'
          5        SEND_VAL                                                 'http%3A%2F%2Fstatus.leagueoflegends.com%2Fshards%2Feuw'
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
   14     8        INIT_FCALL                                               'json_decode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !2, $9
   16    12        FETCH_OBJ_R                                      ~11     !2, 'services'
         13      > FE_RESET_R                                       $12     ~11, ->24
         14    > > FE_FETCH_R                                               $12, !3, ->24
   17    15    >   FETCH_OBJ_R                                      ~13     !3, 'status'
         16        ASSIGN                                                   !4, ~13
   18    17        FETCH_OBJ_R                                      ~15     !3, 'name'
         18        ASSIGN                                                   !5, ~15
   19    19        ECHO                                                     !5
         20        ECHO                                                     '+'
   20    21        ECHO                                                     !4
         22        ECHO                                                     '+'
   16    23      > JMP                                                      ->14
         24    >   FE_FREE                                                  $12
   26    25        ECHO                                                     '%3Ci%3EPrint+works+too%21%3C%2Fi%3E'
   27    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.15 ms | 1396 KiB | 17 Q