3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('default_socket_timeout', -1); //set -1, unless greater than 0, $fp = pfsockopen('127.0.0.1',6379, $en, $err); var_dump($fp); // print false var_dump($err); //print "success",yes, if connect Failed, the error is "Success", i think is bug
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h5Lgm
function name:  (null)
number of ops:  18
compiled vars:  !0 = $fp, !1 = $en, !2 = $err
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'default_socket_timeout'
          2        SEND_VAL                                                 -1
          3        DO_ICALL                                                 
    3     4        INIT_FCALL                                               'pfsockopen'
          5        SEND_VAL                                                 '127.0.0.1'
          6        SEND_VAL                                                 6379
          7        SEND_REF                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    4    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    5    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.08 ms | 1394 KiB | 19 Q