3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(); $i = 1000; while ($i--) { //do stuff } $end = microtime(); echo 'Took ' . $end - $start . ' seconds';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 5
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/lFJrQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $start, !1 = $i, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        DO_ICALL                                         $3      
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 1000
    5     4      > JMP                                                      ->5
          5    >   POST_DEC                                         ~6      !1
          6      > JMPNZ                                                    ~6, ->5
   10     7    >   INIT_FCALL                                               'microtime'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
   12    10        SUB                                              ~9      !2, !0
         11        CONCAT                                           ~10     'Took+', ~9
         12        CONCAT                                           ~11     ~10, '+seconds'
         13        ECHO                                                     ~11
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.43 ms | 1394 KiB | 15 Q