3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.44 ms | 1400 KiB | 21 Q