3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = microtime(true); md5( 'foobar' ); var_dump( microtime(true) - $t ); $t = microtime(true); for( $i = 0 ; $i < 1000 ; $i++ ) md5( 'foobar' ); var_dump( microtime(true) - $t );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 20
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 20
Branch analysis from position: 26
Branch analysis from position: 20
filename:       /in/GAYkv
function name:  (null)
number of ops:  34
compiled vars:  !0 = $t, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'md5'
          5        SEND_VAL                                                 'foobar'
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'microtime'
          9        SEND_VAL                                                 <true>
         10        DO_ICALL                                         $5      
         11        SUB                                              ~6      $5, !0
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'microtime'
         15        SEND_VAL                                                 <true>
         16        DO_ICALL                                         $8      
         17        ASSIGN                                                   !0, $8
    8    18        ASSIGN                                                   !1, 0
         19      > JMP                                                      ->24
    9    20    >   INIT_FCALL                                               'md5'
         21        SEND_VAL                                                 'foobar'
         22        DO_ICALL                                                 
    8    23        PRE_INC                                                  !1
         24    >   IS_SMALLER                                               !1, 1000
         25      > JMPNZ                                                    ~13, ->20
   10    26    >   INIT_FCALL                                               'var_dump'
         27        INIT_FCALL                                               'microtime'
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $14     
         30        SUB                                              ~15     $14, !0
         31        SEND_VAL                                                 ~15
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.55 ms | 1003 KiB | 16 Q