3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.5 ms | 1396 KiB | 19 Q