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))); $samp = array();$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 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/8Ofcp
function name:  (null)
number of ops:  21
compiled vars:  !0 = $sam, !1 = $samp, !2 = $k, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
          2        ASSIGN                                                   !2, 0
    9     3      > FE_RESET_R                                       $7      !0, ->16
          4    > > FE_FETCH_R                                               $7, !3, ->16
   12     5    >   IS_EQUAL                                                 !2, 0
          6      > JMPZ                                                     ~8, ->9
   13     7    >   ASSIGN                                                   !1, !3
          8      > JMP                                                      ->14
   15     9    >   INIT_FCALL                                               'array_intersect'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !1, $10
   17    14    >   PRE_INC                                                  !2
    9    15      > JMP                                                      ->4
         16    >   FE_FREE                                                  $7
   21    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.49 ms | 1395 KiB | 17 Q