3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_start = microtime(true); // Sleep for a while usleep(1000); $time_end = microtime(true); $time = $time_end - $time_start; echo "Did nothing in $time seconds\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qY197
function name:  (null)
number of ops:  18
compiled vars:  !0 = $time_start, !1 = $time_end, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    5     4        INIT_FCALL                                               'usleep'
          5        SEND_VAL                                                 1000
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'microtime'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    8    11        SUB                                              ~8      !1, !0
         12        ASSIGN                                                   !2, ~8
   10    13        ROPE_INIT                                     3  ~11     'Did+nothing+in+'
         14        ROPE_ADD                                      1  ~11     ~11, !2
         15        ROPE_END                                      2  ~10     ~11, '+seconds%0A'
         16        ECHO                                                     ~10
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.27 ms | 1394 KiB | 17 Q