3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = range(2, 4048, 2); $a2 = range(4, 8096, 4); $a3 = []; for($i = 0; $i < count($a1); $i++){ for($j = 0; $j < count($a2); $j++){ if($a1[$i] === $a2[$j]){ $a3[] = $a1[$i]; } } } print_r($a3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 15
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 17
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 15
Branch analysis from position: 32
Branch analysis from position: 15
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 17
Branch analysis from position: 28
Branch analysis from position: 17
Branch analysis from position: 24
filename:       /in/FmLgl
function name:  (null)
number of ops:  36
compiled vars:  !0 = $a1, !1 = $a2, !2 = $a3, !3 = $i, !4 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'range'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 4048
          3        SEND_VAL                                                 2
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !0, $5
    4     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 4
          8        SEND_VAL                                                 8096
          9        SEND_VAL                                                 4
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !1, $7
    5    12        ASSIGN                                                   !2, <array>
    7    13        ASSIGN                                                   !3, 0
         14      > JMP                                                      ->29
    8    15    >   ASSIGN                                                   !4, 0
         16      > JMP                                                      ->25
    9    17    >   FETCH_DIM_R                                      ~12     !0, !3
         18        FETCH_DIM_R                                      ~13     !1, !4
         19        IS_IDENTICAL                                             ~12, ~13
         20      > JMPZ                                                     ~14, ->24
   10    21    >   FETCH_DIM_R                                      ~16     !0, !3
         22        ASSIGN_DIM                                               !2
         23        OP_DATA                                                  ~16
    8    24    >   PRE_INC                                                  !4
         25    >   COUNT                                            ~18     !1
         26        IS_SMALLER                                               !4, ~18
         27      > JMPNZ                                                    ~19, ->17
    7    28    >   PRE_INC                                                  !3
         29    >   COUNT                                            ~21     !0
         30        IS_SMALLER                                               !3, ~21
         31      > JMPNZ                                                    ~22, ->15
   14    32    >   INIT_FCALL                                               'print_r'
         33        SEND_VAR                                                 !2
         34        DO_ICALL                                                 
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1400 KiB | 17 Q