3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_URL, 'http://query.fakaheda.eu/93.91.250.135:27872.feed'); $result = curl_exec($curl); curl_close($curl); $json = file_get_contents('http://query.fakaheda.eu/93.91.250.135:27872.feed'); $obj = json_decode($json, true); if($obj == null){ echo('Nejde získat informace'); return; }else{ $players = $obj->players; $max_players = $obj->slots; if(players != 0){ echo('Na serveru nikdo není!'); }else{ echo('Hračů na serveru: '.$players.'/'.$slots); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 45
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tNn1C
function name:  (null)
number of ops:  50
compiled vars:  !0 = $curl, !1 = $result, !2 = $json, !3 = $obj, !4 = $players, !5 = $max_players, !6 = $slots
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $7      
          2        ASSIGN                                                   !0, $7
    3     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~9      'CURLOPT_RETURNTRANSFER'
          6        SEND_VAL_EX                                              ~9
          7        SEND_VAL_EX                                              <true>
          8        DO_FCALL                                      0          
    4     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~11     'CURLOPT_URL'
         12        SEND_VAL_EX                                              ~11
         13        SEND_VAL_EX                                              'http%3A%2F%2Fquery.fakaheda.eu%2F93.91.250.135%3A27872.feed'
         14        DO_FCALL                                      0          
    5    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $13     
         18        ASSIGN                                                   !1, $13
    6    19        INIT_FCALL_BY_NAME                                       'curl_close'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
    8    22        INIT_FCALL                                               'file_get_contents'
         23        SEND_VAL                                                 'http%3A%2F%2Fquery.fakaheda.eu%2F93.91.250.135%3A27872.feed'
         24        DO_ICALL                                         $16     
         25        ASSIGN                                                   !2, $16
    9    26        INIT_FCALL                                               'json_decode'
         27        SEND_VAR                                                 !2
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $18     
         30        ASSIGN                                                   !3, $18
   10    31        IS_EQUAL                                                 !3, null
         32      > JMPZ                                                     ~20, ->36
   11    33    >   ECHO                                                     'Nejde+z%C3%ADskat+informace'
   12    34      > RETURN                                                   null
         35*       JMP                                                      ->49
   14    36    >   FETCH_OBJ_R                                      ~21     !3, 'players'
         37        ASSIGN                                                   !4, ~21
   15    38        FETCH_OBJ_R                                      ~23     !3, 'slots'
         39        ASSIGN                                                   !5, ~23
   16    40        FETCH_CONSTANT                                   ~25     'players'
         41        IS_NOT_EQUAL                                             ~25, 0
         42      > JMPZ                                                     ~26, ->45
   17    43    >   ECHO                                                     'Na+serveru+nikdo+nen%C3%AD%21'
         44      > JMP                                                      ->49
   19    45    >   CONCAT                                           ~27     'Hra%C4%8D%C5%AF+na+serveru%3A+', !4
         46        CONCAT                                           ~28     ~27, '%2F'
         47        CONCAT                                           ~29     ~28, !6
         48        ECHO                                                     ~29
   22    49    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.98 ms | 1400 KiB | 17 Q