3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fp = fsockopen("udp://127.0.0.1", 13, $errno, $errstr); if (!$fp) { echo "ERROR: $errno - $errstr<br />\n"; } else { fwrite($fp, "\n"); echo fread($fp, 26); fclose($fp); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eCKaf
function name:  (null)
number of ops:  29
compiled vars:  !0 = $fp, !1 = $errno, !2 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'fsockopen'
          1        SEND_VAL                                                 'udp%3A%2F%2F127.0.0.1'
          2        SEND_VAL                                                 13
          3        SEND_REF                                                 !1
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
    4     7        BOOL_NOT                                         ~5      !0
          8      > JMPZ                                                     ~5, ->16
    5     9    >   ROPE_INIT                                     5  ~7      'ERROR%3A+'
         10        ROPE_ADD                                      1  ~7      ~7, !1
         11        ROPE_ADD                                      2  ~7      ~7, '+-+'
         12        ROPE_ADD                                      3  ~7      ~7, !2
         13        ROPE_END                                      4  ~6      ~7, '%3Cbr+%2F%3E%0A'
         14        ECHO                                                     ~6
         15      > JMP                                                      ->28
    7    16    >   INIT_FCALL                                               'fwrite'
         17        SEND_VAR                                                 !0
         18        SEND_VAL                                                 '%0A'
         19        DO_ICALL                                                 
    8    20        INIT_FCALL                                               'fread'
         21        SEND_VAR                                                 !0
         22        SEND_VAL                                                 26
         23        DO_ICALL                                         $11     
         24        ECHO                                                     $11
    9    25        INIT_FCALL                                               'fclose'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
   10    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.52 ms | 1395 KiB | 21 Q