3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '<form enctype="multipart/form-data" action="ping.php" method="post"> <p>Podpis:</p><input class="imie" name="strona" type="text" maxlength="30" SIZE="30"><br> <br><br><input type="submit" class="button2" value="pinguj">'; function ping($host) { $tB = microtime(true); $fP = fSockOpen($host, 80, $errno, $errstr, 10); if (!$fP) { return "down"; } $tA = microtime(true); return round((($tA - $tB) * 1000), 0)." ms"; } if( isset($_POST['strona']) ){ for($x=1;$x<=10;$x++) { echo ping("$_POST[strona]")."<br>"; } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 6
Branch analysis from position: 17
Branch analysis from position: 6
Branch analysis from position: 17
filename:       /in/6Q8SK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     '%3Cform+enctype%3D%22multipart%2Fform-data%22+action%3D%22ping.php%22+method%3D%22post%22%3E%0A%3Cp%3EPodpis%3A%3C%2Fp%3E%3Cinput+class%3D%22imie%22+name%3D%22strona%22+type%3D%22text%22+maxlength%3D%2230%22+SIZE%3D%2230%22%3E%3Cbr%3E%0A%3Cbr%3E%3Cbr%3E%3Cinput+type%3D%22submit%22+class%3D%22button2%22+value%3D%22pinguj%22%3E'
   15     1        FETCH_IS                                         ~1      '_POST'
          2        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'strona'
          3      > JMPZ                                                     ~2, ->17
   16     4    >   ASSIGN                                                   !0, 1
          5      > JMP                                                      ->15
   18     6    >   INIT_FCALL                                               'ping'
          7        FETCH_R                      global              ~4      '_POST'
          8        FETCH_DIM_R                                      ~5      ~4, 'strona'
          9        CAST                                          6  ~6      ~5
         10        SEND_VAL                                                 ~6
         11        DO_FCALL                                      0  $7      
         12        CONCAT                                           ~8      $7, '%3Cbr%3E'
         13        ECHO                                                     ~8
   16    14        PRE_INC                                                  !0
         15    >   IS_SMALLER_OR_EQUAL                                      !0, 10
         16      > JMPNZ                                                    ~10, ->6
   21    17    > > RETURN                                                   1

Function ping:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Q8SK
function name:  ping
number of ops:  29
compiled vars:  !0 = $host, !1 = $tB, !2 = $fP, !3 = $errno, !4 = $errstr, !5 = $tA
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    9     5        INIT_FCALL                                               'fsockopen'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 80
          8        SEND_REF                                                 !3
          9        SEND_REF                                                 !4
         10        SEND_VAL                                                 10
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !2, $8
   10    13        BOOL_NOT                                         ~10     !2
         14      > JMPZ                                                     ~10, ->16
         15    > > RETURN                                                   'down'
   11    16    >   INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !5, $11
   12    20        INIT_FCALL                                               'round'
         21        SUB                                              ~13     !5, !1
         22        MUL                                              ~14     ~13, 1000
         23        SEND_VAL                                                 ~14
         24        SEND_VAL                                                 0
         25        DO_ICALL                                         $15     
         26        CONCAT                                           ~16     $15, '+ms'
         27      > RETURN                                                   ~16
   13    28*     > RETURN                                                   null

End of function ping

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.35 ms | 1394 KiB | 20 Q