3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cha1 = array(0,1,2,3,4,5); $cha2 = array(4,6,2,8,3,1); $cha1_count = count($cha1); $cha2_count = count($cha2); $cha12_count = 0; $Ck_cha2 = $cha2; for($count1 = 0; $count1 < $cha1_count; $count1++){ for($count2 = 0; $count2 < $cha2_count; $count2++){ if($cha1[$count1] == $Ck_cha2[$count2]){ $Ck_cha2[$count2] = 'Ckeck'; $cha12_count++; break; } } } echo $Ck_cha2[0]; echo $Ck_cha2[1]; echo $Ck_cha2[2]; echo $cha12_count; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 10
Branch analysis from position: 26
Branch analysis from position: 10
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
filename:       /in/nMhNa
function name:  (null)
number of ops:  34
compiled vars:  !0 = $cha1, !1 = $cha2, !2 = $cha1_count, !3 = $cha2_count, !4 = $cha12_count, !5 = $Ck_cha2, !6 = $count1, !7 = $count2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    4     2        COUNT                                            ~10     !0
          3        ASSIGN                                                   !2, ~10
    5     4        COUNT                                            ~12     !1
          5        ASSIGN                                                   !3, ~12
    6     6        ASSIGN                                                   !4, 0
    7     7        ASSIGN                                                   !5, !1
    8     8        ASSIGN                                                   !6, 0
          9      > JMP                                                      ->24
    9    10    >   ASSIGN                                                   !7, 0
         11      > JMP                                                      ->21
   10    12    >   FETCH_DIM_R                                      ~18     !0, !6
         13        FETCH_DIM_R                                      ~19     !5, !7
         14        IS_EQUAL                                                 ~18, ~19
         15      > JMPZ                                                     ~20, ->20
   11    16    >   ASSIGN_DIM                                               !5, !7
         17        OP_DATA                                                  'Ckeck'
   12    18        PRE_INC                                                  !4
   13    19      > JMP                                                      ->23
    9    20    >   PRE_INC                                                  !7
         21    >   IS_SMALLER                                               !7, !3
         22      > JMPNZ                                                    ~24, ->12
    8    23    >   PRE_INC                                                  !6
         24    >   IS_SMALLER                                               !6, !2
         25      > JMPNZ                                                    ~26, ->10
   17    26    >   FETCH_DIM_R                                      ~27     !5, 0
         27        ECHO                                                     ~27
   18    28        FETCH_DIM_R                                      ~28     !5, 1
         29        ECHO                                                     ~28
   19    30        FETCH_DIM_R                                      ~29     !5, 2
         31        ECHO                                                     ~29
   20    32        ECHO                                                     !4
   21    33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1390 KiB | 13 Q