3v4l.org

run code in 300+ PHP versions simultaneously
<?php $SERVER_IP = "185.38.148.147"; //Insert the IP of the server you want to query. $SERVER_PORT = "25581"; //Insert the PORT of the server you want to ping. Needed to get the favicon, motd, players online and players max. etc $QUERY_PORT = "28016"; //Port of query.port="" in your server.properties. Needed for the playerlist! Can be the same like the port or different. Query must be enabled in your server.properties file! $HEADS = "3D"; //"normal" / "3D" $show_max = "unlimited"; // how much playerheads should we display? "unlimited" / "10" / "53"/ ... $SHOW_FAVICON = "on"; //"off" / "on" $ping = json_decode(file_get_contents('http://api.minetools.eu/ping/' . $SERVER_IP . '/' . $SERVER_PORT . ''), true); $query = json_decode(file_get_contents('http://api.minetools.eu/query/' . $SERVER_IP . '/' . $QUERY_PORT . ''), true); if(empty($ping['error'])) { $version = $ping['version']['name']; $online = $ping['players']['online']; $max = $ping['players']['max']; $motd = $ping['description']; $favicon = $ping['favicon']; } if(empty($query['error'])) { $playerlist = $query['Playerlist']; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 45
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
Branch analysis from position: 45
filename:       /in/sMLUe
function name:  (null)
number of ops:  50
compiled vars:  !0 = $SERVER_IP, !1 = $SERVER_PORT, !2 = $QUERY_PORT, !3 = $HEADS, !4 = $show_max, !5 = $SHOW_FAVICON, !6 = $ping, !7 = $query, !8 = $version, !9 = $online, !10 = $max, !11 = $motd, !12 = $favicon, !13 = $playerlist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '185.38.148.147'
    3     1        ASSIGN                                                   !1, '25581'
    4     2        ASSIGN                                                   !2, '28016'
    6     3        ASSIGN                                                   !3, '3D'
    7     4        ASSIGN                                                   !4, 'unlimited'
    8     5        ASSIGN                                                   !5, 'on'
   10     6        INIT_FCALL                                               'json_decode'
          7        INIT_FCALL                                               'file_get_contents'
          8        CONCAT                                           ~20     'http%3A%2F%2Fapi.minetools.eu%2Fping%2F', !0
          9        CONCAT                                           ~21     ~20, '%2F'
         10        CONCAT                                           ~22     ~21, !1
         11        CONCAT                                           ~23     ~22, ''
         12        SEND_VAL                                                 ~23
         13        DO_ICALL                                         $24     
         14        SEND_VAR                                                 $24
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $25     
         17        ASSIGN                                                   !6, $25
   11    18        INIT_FCALL                                               'json_decode'
         19        INIT_FCALL                                               'file_get_contents'
         20        CONCAT                                           ~27     'http%3A%2F%2Fapi.minetools.eu%2Fquery%2F', !0
         21        CONCAT                                           ~28     ~27, '%2F'
         22        CONCAT                                           ~29     ~28, !2
         23        CONCAT                                           ~30     ~29, ''
         24        SEND_VAL                                                 ~30
         25        DO_ICALL                                         $31     
         26        SEND_VAR                                                 $31
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $32     
         29        ASSIGN                                                   !7, $32
   13    30        ISSET_ISEMPTY_DIM_OBJ                         1          !6, 'error'
         31      > JMPZ                                                     ~34, ->45
   14    32    >   FETCH_DIM_R                                      ~35     !6, 'version'
         33        FETCH_DIM_R                                      ~36     ~35, 'name'
         34        ASSIGN                                                   !8, ~36
   15    35        FETCH_DIM_R                                      ~38     !6, 'players'
         36        FETCH_DIM_R                                      ~39     ~38, 'online'
         37        ASSIGN                                                   !9, ~39
   16    38        FETCH_DIM_R                                      ~41     !6, 'players'
         39        FETCH_DIM_R                                      ~42     ~41, 'max'
         40        ASSIGN                                                   !10, ~42
   17    41        FETCH_DIM_R                                      ~44     !6, 'description'
         42        ASSIGN                                                   !11, ~44
   18    43        FETCH_DIM_R                                      ~46     !6, 'favicon'
         44        ASSIGN                                                   !12, ~46
   21    45    >   ISSET_ISEMPTY_DIM_OBJ                         1          !7, 'error'
         46      > JMPZ                                                     ~48, ->49
   22    47    >   FETCH_DIM_R                                      ~49     !7, 'Playerlist'
         48        ASSIGN                                                   !13, ~49
   24    49    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.22 ms | 1400 KiB | 17 Q