3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time0 = microtime(true); sleep(1); $time1 = microtime(true); sleep(2); $time2 = microtime(true); var_dump(1000*($time1-$time0), 1000*($time2-$time1));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EaPZq
function name:  (null)
number of ops:  27
compiled vars:  !0 = $time0, !1 = $time1, !2 = $time2
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
    3     4        INIT_FCALL                                               'sleep'
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    4     7        INIT_FCALL                                               'microtime'
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        INIT_FCALL                                               'sleep'
         12        SEND_VAL                                                 2
         13        DO_ICALL                                                 
    6    14        INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $9      
         17        ASSIGN                                                   !2, $9
    8    18        INIT_FCALL                                               'var_dump'
         19        SUB                                              ~11     !1, !0
         20        MUL                                              ~12     ~11, 1000
         21        SEND_VAL                                                 ~12
         22        SUB                                              ~13     !2, !1
         23        MUL                                              ~14     ~13, 1000
         24        SEND_VAL                                                 ~14
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.44 ms | 1399 KiB | 19 Q