3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Script by Akensai if (!$socket = @fsockopen("www.gooigle.com", 80, $errno, $errstr, 30)) { echo "<font color='red'><strong>Offline!</strong></font>"; } else { echo "<font color='green'><strong>Online!/strong></font>"; fclose($socket); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QUiuP
function name:  (null)
number of ops:  19
compiled vars:  !0 = $socket, !1 = $errno, !2 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BEGIN_SILENCE                                    ~3      
          1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAL                                                 'www.gooigle.com'
          3        SEND_VAL                                                 80
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 30
          7        DO_ICALL                                         $4      
          8        END_SILENCE                                              ~3
          9        ASSIGN                                           ~5      !0, $4
         10        BOOL_NOT                                         ~6      ~5
         11      > JMPZ                                                     ~6, ->14
    6    12    >   ECHO                                                     '%3Cfont+color%3D%27red%27%3E%3Cstrong%3EOffline%21%3C%2Fstrong%3E%3C%2Ffont%3E'
         13      > JMP                                                      ->18
   10    14    >   ECHO                                                     '%3Cfont+color%3D%27green%27%3E%3Cstrong%3EOnline%21%2Fstrong%3E%3C%2Ffont%3E'
   13    15        INIT_FCALL                                               'fclose'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                                 
   16    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1395 KiB | 17 Q