3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t1 = microtime(true); for($a = 0; $a < 1000; $a++) { for($i = 1; $i < 1000; $i++) { $varArray1[$a][] = $i ** ($i * 2); if($i%2==0&&$a%5==0) $varArray[$a][] = $i ** ($i * 2); else $varArray2[$a][] = $i ** ($i * 4); } } for($i = 0; $i < 1000; $i += 2) array_diff($varArray1[$i],$varArray2[$i+1]); $t2 = microtime(true); echo $t2 - $t1;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 6
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 39
Branch analysis from position: 49
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 49, Position 2 = 39
Branch analysis from position: 49
Branch analysis from position: 39
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 8
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 6
Branch analysis from position: 37
Branch analysis from position: 6
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 26
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 8
Branch analysis from position: 34
Branch analysis from position: 8
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 34, Position 2 = 8
Branch analysis from position: 34
Branch analysis from position: 8
Branch analysis from position: 19
filename:       /in/cd2RG
function name:  (null)
number of ops:  56
compiled vars:  !0 = $t1, !1 = $a, !2 = $i, !3 = $varArray1, !4 = $varArray, !5 = $varArray2, !6 = $t2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->35
    4     6    >   ASSIGN                                                   !2, 1
          7      > JMP                                                      ->32
    5     8    >   MUL                                              ~13     !2, 2
          9        POW                                              ~14     !2, ~13
         10        FETCH_DIM_W                                      $11     !3, !1
         11        ASSIGN_DIM                                               $11
         12        OP_DATA                                                  ~14
    6    13        MOD                                              ~15     !2, 2
         14        IS_EQUAL                                         ~16     ~15, 0
         15      > JMPZ_EX                                          ~16     ~16, ->19
         16    >   MOD                                              ~17     !1, 5
         17        IS_EQUAL                                         ~18     ~17, 0
         18        BOOL                                             ~16     ~18
         19    > > JMPZ                                                     ~16, ->26
         20    >   MUL                                              ~21     !2, 2
         21        POW                                              ~22     !2, ~21
         22        FETCH_DIM_W                                      $19     !4, !1
         23        ASSIGN_DIM                                               $19
         24        OP_DATA                                                  ~22
         25      > JMP                                                      ->31
    7    26    >   MUL                                              ~25     !2, 4
         27        POW                                              ~26     !2, ~25
         28        FETCH_DIM_W                                      $23     !5, !1
         29        ASSIGN_DIM                                               $23
         30        OP_DATA                                                  ~26
    4    31    >   PRE_INC                                                  !2
         32    >   IS_SMALLER                                               !2, 1000
         33      > JMPNZ                                                    ~28, ->8
    3    34    >   PRE_INC                                                  !1
         35    >   IS_SMALLER                                               !1, 1000
         36      > JMPNZ                                                    ~30, ->6
   10    37    >   ASSIGN                                                   !2, 0
         38      > JMP                                                      ->47
         39    >   INIT_FCALL                                               'array_diff'
         40        FETCH_DIM_R                                      ~32     !3, !2
         41        SEND_VAL                                                 ~32
         42        ADD                                              ~33     !2, 1
         43        FETCH_DIM_R                                      ~34     !5, ~33
         44        SEND_VAL                                                 ~34
         45        DO_ICALL                                                 
         46        ASSIGN_OP                                     1          !2, 2
         47    >   IS_SMALLER                                               !2, 1000
         48      > JMPNZ                                                    ~37, ->39
   11    49    >   INIT_FCALL                                               'microtime'
         50        SEND_VAL                                                 <true>
         51        DO_ICALL                                         $38     
         52        ASSIGN                                                   !6, $38
   12    53        SUB                                              ~40     !6, !0
         54        ECHO                                                     ~40
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.73 ms | 1400 KiB | 17 Q