3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.3 ms | 1400 KiB | 21 Q