3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $hash = 0; for ($i = 0; $i < 1000000; $i += 1) { // XOR $hash ^= md5(substr(str_shuffle('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, rand(1,10))); } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds'.PHP_EOL;
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 = 7
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 7
Branch analysis from position: 26
Branch analysis from position: 7
filename:       /in/7dooJ
function name:  (null)
number of ops:  40
compiled vars:  !0 = $time, !1 = $hash, !2 = $i
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
    4     4        ASSIGN                                                   !1, 0
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->24
    7     7    >   INIT_FCALL                                               'md5'
          8        INIT_FCALL                                               'substr'
          9        INIT_FCALL                                               'str_shuffle'
         10        SEND_VAL                                                 '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        SEND_VAL                                                 0
         14        INIT_FCALL                                               'rand'
         15        SEND_VAL                                                 1
         16        SEND_VAL                                                 10
         17        DO_ICALL                                         $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                         $10     
         22        ASSIGN_OP                                    11          !1, $10
    5    23        ASSIGN_OP                                     1          !2, 1
         24    >   IS_SMALLER                                               !2, 1000000
         25      > JMPNZ                                                    ~13, ->7
   10    26    >   INIT_FCALL                                               'microtime'
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $14     
         29        SUB                                              ~15     $14, !0
         30        ASSIGN                                                   !0, ~15
   12    31        INIT_FCALL                                               'number_format'
         32        SEND_VAR                                                 !0
         33        SEND_VAL                                                 3
         34        DO_ICALL                                         $17     
         35        CONCAT                                           ~18     'array_diff%28%29+took+', $17
         36        CONCAT                                           ~19     ~18, '+seconds'
         37        CONCAT                                           ~20     ~19, '%0A'
         38        ECHO                                                     ~20
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.75 ms | 1400 KiB | 25 Q