3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i=0; $j=500000; while($i < 60000) { $i++; $j++; if (true) { $data1[] = md5($i); $data2[] = md5($j); } } $time = microtime(true); echo "Starting array_diff\n"; $data_diff1 = array_diff($data1, $data2); $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds and returned ' . count($data_diff1) . " entries\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 3
Branch analysis from position: 18
Branch analysis from position: 3
Branch analysis from position: 16
filename:       /in/HkaZZ
function name:  (null)
number of ops:  44
compiled vars:  !0 = $i, !1 = $j, !2 = $data1, !3 = $data2, !4 = $time, !5 = $data_diff1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 500000
    3     2      > JMP                                                      ->16
    4     3    >   PRE_INC                                                  !0
          4        PRE_INC                                                  !1
    5     5      > JMPZ                                                     <true>, ->16
    6     6    >   INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $11     
          9        ASSIGN_DIM                                               !2
         10        OP_DATA                                                  $11
    7    11        INIT_FCALL                                               'md5'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $13     
         14        ASSIGN_DIM                                               !3
         15        OP_DATA                                                  $13
    3    16    >   IS_SMALLER                                               !0, 60000
         17      > JMPNZ                                                    ~14, ->3
   11    18    >   INIT_FCALL                                               'microtime'
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $15     
         21        ASSIGN                                                   !4, $15
   13    22        ECHO                                                     'Starting+array_diff%0A'
   14    23        INIT_FCALL                                               'array_diff'
         24        SEND_VAR                                                 !2
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                         $17     
         27        ASSIGN                                                   !5, $17
   16    28        INIT_FCALL                                               'microtime'
         29        SEND_VAL                                                 <true>
         30        DO_ICALL                                         $19     
         31        SUB                                              ~20     $19, !4
         32        ASSIGN                                                   !4, ~20
   18    33        INIT_FCALL                                               'number_format'
         34        SEND_VAR                                                 !4
         35        SEND_VAL                                                 3
         36        DO_ICALL                                         $22     
         37        CONCAT                                           ~23     'array_diff%28%29+took+', $22
         38        CONCAT                                           ~24     ~23, '+seconds+and+returned+'
         39        COUNT                                            ~25     !5
         40        CONCAT                                           ~26     ~24, ~25
         41        CONCAT                                           ~27     ~26, '+entries%0A'
         42        ECHO                                                     ~27
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.06 ms | 1400 KiB | 21 Q