3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $fp = fsockopen("www.yahoo.com", 80, $errno, $errstr, 30); print round(microtime(true) - $time, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AOMrs
function name:  (null)
number of ops:  22
compiled vars:  !0 = $time, !1 = $fp, !2 = $errno, !3 = $errstr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    4     4        INIT_FCALL                                               'fsockopen'
          5        SEND_VAL                                                 'www.yahoo.com'
          6        SEND_VAL                                                 80
          7        SEND_REF                                                 !2
          8        SEND_REF                                                 !3
          9        SEND_VAL                                                 30
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    5    12        INIT_FCALL                                               'round'
         13        INIT_FCALL                                               'microtime'
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $8      
         16        SUB                                              ~9      $8, !0
         17        SEND_VAL                                                 ~9
         18        SEND_VAL                                                 2
         19        DO_ICALL                                         $10     
         20        ECHO                                                     $10
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.11 ms | 1395 KiB | 19 Q