3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sam = array(Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25)), Array ( "0" => Array ( "0" => 24 ),"1" => Array("0" => 25 ))); //$sam=array_intersect ($sam); //$sam = array_map("unserialize", array_unique(array_map("serialize", $sam))); $k = 0; foreach($sam as $value) { if($k == 0) $samp = $value; else $samp=array_intersect($samp,$value); $k++; } print_r($samp);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/C7OIM
function name:  (null)
number of ops:  20
compiled vars:  !0 = $sam, !1 = $k, !2 = $value, !3 = $samp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, 0
    9     2      > FE_RESET_R                                       $6      !0, ->15
          3    > > FE_FETCH_R                                               $6, !2, ->15
   12     4    >   IS_EQUAL                                                 !1, 0
          5      > JMPZ                                                     ~7, ->8
   13     6    >   ASSIGN                                                   !3, !2
          7      > JMP                                                      ->13
   15     8    >   INIT_FCALL                                               'array_intersect'
          9        SEND_VAR                                                 !3
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        ASSIGN                                                   !3, $9
   17    13    >   PRE_INC                                                  !1
    9    14      > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   21    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.61 ms | 1395 KiB | 17 Q