3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a1 = range(2, 4048, 2); $a2 = range(4, 8096, 4); $count1 = count($a1); $count2 = count($a2); for($i = 0; $i < $count1; $i++){ for($j = 0; $j < $count2; $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 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 18
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 18
Branch analysis from position: 33
Branch analysis from position: 18
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
Branch analysis from position: 20
Branch analysis from position: 27
filename:       /in/kU1be
function name:  (null)
number of ops:  37
compiled vars:  !0 = $a1, !1 = $a2, !2 = $count1, !3 = $count2, !4 = $i, !5 = $j, !6 = $a3
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                                         $7      
          5        ASSIGN                                                   !0, $7
    4     6        INIT_FCALL                                               'range'
          7        SEND_VAL                                                 4
          8        SEND_VAL                                                 8096
          9        SEND_VAL                                                 4
         10        DO_ICALL                                         $9      
         11        ASSIGN                                                   !1, $9
    5    12        COUNT                                            ~11     !0
         13        ASSIGN                                                   !2, ~11
    6    14        COUNT                                            ~13     !1
         15        ASSIGN                                                   !3, ~13
    7    16        ASSIGN                                                   !4, 0
         17      > JMP                                                      ->31
    8    18    >   ASSIGN                                                   !5, 0
         19      > JMP                                                      ->28
    9    20    >   FETCH_DIM_R                                      ~17     !0, !4
         21        FETCH_DIM_R                                      ~18     !1, !5
         22        IS_IDENTICAL                                             ~17, ~18
         23      > JMPZ                                                     ~19, ->27
   10    24    >   FETCH_DIM_R                                      ~21     !0, !4
         25        ASSIGN_DIM                                               !6
         26        OP_DATA                                                  ~21
    8    27    >   PRE_INC                                                  !5
         28    >   IS_SMALLER                                               !5, !3
         29      > JMPNZ                                                    ~23, ->20
    7    30    >   PRE_INC                                                  !4
         31    >   IS_SMALLER                                               !4, !2
         32      > JMPNZ                                                    ~25, ->18
   15    33    >   INIT_FCALL                                               'print_r'
         34        SEND_VAR                                                 !6
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.54 ms | 1392 KiB | 17 Q