3v4l.org

run code in 300+ PHP versions simultaneously
<?php $size = 100; $b = array(); for ($i = 0; $i < $size; $i++) { $b[] = chr(rand(64,128)); } $a = array(0,3,4,2,6); for ($i = 0; $i < 10000; $i++) { $c = array_intersect_key($b, array_flip($a)); /* $c = array(); foreach ($a as $akey) { $c[] = $b[$akey]; } */ }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 19
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 19
Branch analysis from position: 30
Branch analysis from position: 19
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 4
Branch analysis from position: 16
Branch analysis from position: 4
filename:       /in/b6FhG
function name:  (null)
number of ops:  31
compiled vars:  !0 = $size, !1 = $b, !2 = $i, !3 = $a, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 100
    4     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->14
    7     4    >   INIT_FCALL                                               'chr'
          5        INIT_FCALL                                               'rand'
          6        SEND_VAL                                                 64
          7        SEND_VAL                                                 128
          8        DO_ICALL                                         $9      
          9        SEND_VAR                                                 $9
         10        DO_ICALL                                         $10     
         11        ASSIGN_DIM                                               !1
         12        OP_DATA                                                  $10
    6    13        PRE_INC                                                  !2
         14    >   IS_SMALLER                                               !2, !0
         15      > JMPNZ                                                    ~12, ->4
   10    16    >   ASSIGN                                                   !3, <array>
   12    17        ASSIGN                                                   !2, 0
         18      > JMP                                                      ->28
   13    19    >   INIT_FCALL                                               'array_intersect_key'
         20        SEND_VAR                                                 !1
         21        INIT_FCALL                                               'array_flip'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                         $15     
         24        SEND_VAR                                                 $15
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !4, $16
   12    27        PRE_INC                                                  !2
         28    >   IS_SMALLER                                               !2, 10000
         29      > JMPNZ                                                    ~19, ->19
   20    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.22 ms | 1388 KiB | 21 Q