3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ip = "s4.myradiostream.com"; $port = "13402"; $fp = @fsockopen($ip,$port,$errno,$errstr,1); if (!$fp) { $listeners = "0;"; } else { fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n"); while (!feof($fp)) { $info = fgets($fp); } $split = explode(',', $info); if ($split[1] == "0") { $listeners = "0"; } else { $listeners = $split[0]; } } print $listeners; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 21
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 40
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 21
Branch analysis from position: 30
Branch analysis from position: 21
filename:       /in/E8rRK
function name:  (null)
number of ops:  44
compiled vars:  !0 = $ip, !1 = $port, !2 = $fp, !3 = $errno, !4 = $errstr, !5 = $listeners, !6 = $info, !7 = $split
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 's4.myradiostream.com'
    3     1        ASSIGN                                                   !1, '13402'
    4     2        BEGIN_SILENCE                                    ~10     
          3        INIT_FCALL                                               'fsockopen'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_REF                                                 !3
          7        SEND_REF                                                 !4
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $11     
         10        END_SILENCE                                              ~10
         11        ASSIGN                                                   !2, $11
    5    12        BOOL_NOT                                         ~13     !2
         13      > JMPZ                                                     ~13, ->16
    6    14    >   ASSIGN                                                   !5, '0%3B'
         15      > JMP                                                      ->42
    8    16    >   INIT_FCALL                                               'fputs'
         17        SEND_VAR                                                 !2
         18        SEND_VAL                                                 'GET+%2F7.html+HTTP%2F1.0%0D%0AUser-Agent%3A+Mozilla%0D%0A%0D%0A'
         19        DO_ICALL                                                 
    9    20      > JMP                                                      ->25
   10    21    >   INIT_FCALL                                               'fgets'
         22        SEND_VAR                                                 !2
         23        DO_ICALL                                         $16     
         24        ASSIGN                                                   !6, $16
    9    25    >   INIT_FCALL                                               'feof'
         26        SEND_VAR                                                 !2
         27        DO_ICALL                                         $18     
         28        BOOL_NOT                                         ~19     $18
         29      > JMPNZ                                                    ~19, ->21
   12    30    >   INIT_FCALL                                               'explode'
         31        SEND_VAL                                                 '%2C'
         32        SEND_VAR                                                 !6
         33        DO_ICALL                                         $20     
         34        ASSIGN                                                   !7, $20
   13    35        FETCH_DIM_R                                      ~22     !7, 1
         36        IS_EQUAL                                                 ~22, '0'
         37      > JMPZ                                                     ~23, ->40
   14    38    >   ASSIGN                                                   !5, '0'
         39      > JMP                                                      ->42
   16    40    >   FETCH_DIM_R                                      ~25     !7, 0
         41        ASSIGN                                                   !5, ~25
   19    42    >   ECHO                                                     !5
   20    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.32 ms | 1392 KiB | 23 Q