3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($socket =@ fsockopen('google.com', 80, $errno, $errstr, 30)) { echo 'running'; } else { echo 'not'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hUJWm
function name:  (null)
number of ops:  15
compiled vars:  !0 = $socket, !1 = $errno, !2 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   BEGIN_SILENCE                                    ~3      
          1        INIT_FCALL                                               'fsockopen'
          2        SEND_VAL                                                 'google.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      > JMPZ                                                     ~5, ->13
    4    11    >   ECHO                                                     'running'
         12      > JMP                                                      ->14
    6    13    >   ECHO                                                     'not'
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.95 ms | 1394 KiB | 15 Q