3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host = 'google.com'; if(fsockopen($host, 80, $errno, $errstr, 30)) { echo 'online!'; fclose($socket); } else { echo 'offline.'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9JKDX
function name:  (null)
number of ops:  16
compiled vars:  !0 = $host, !1 = $errno, !2 = $errstr, !3 = $socket
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'google.com'
    3     1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 80
          4        SEND_REF                                                 !1
          5        SEND_REF                                                 !2
          6        SEND_VAL                                                 30
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->14
    4     9    >   ECHO                                                     'online%21'
    5    10        INIT_FCALL                                               'fclose'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                                 
         13      > JMP                                                      ->15
    7    14    >   ECHO                                                     'offline.'
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.09 ms | 1394 KiB | 17 Q