3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(); usleep(2000); $end = microtime(); echo $end-$start;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/U5fQn
function name:  (null)
number of ops:  12
compiled vars:  !0 = $start, !1 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        DO_ICALL                                         $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'usleep'
          4        SEND_VAL                                                 2000
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'microtime'
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    7     9        SUB                                              ~7      !1, !0
         10        ECHO                                                     ~7
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.65 ms | 1394 KiB | 17 Q