3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = array( array ( 'nombre_entrada' => 'Entrada General', 'precio_productor' => 250, 'id_funcion' => 907, ), array ( 'nombre_entrada' => 'Entrada General', 'precio_productor' => 300, 'id_funcion' => 907, ), array ( 'nombre_entrada' => 'Entrada General', 'precio_productor' => 350, 'id_funcion' => 907, ), array ( 'nombre_entrada' => '2 entradas x', 'precio_productor' => 400, 'id_funcion' => 907, ) ); $array2 = array( array ( 'nombre_entrada' => 'Entrada General', 'precio_productor' => 350, 'id_funcion' => 907, ), array ( 'nombre_entrada' => '2 entradas x', 'precio_productor' => 400, 'id_funcion' => 907, ), ); $missing = array_udiff($array1, $array2, function($a, $b) { return strcmp(serialize($a), serialize($b)); }); var_export($missing);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErtCp
function name:  (null)
number of ops:  13
compiled vars:  !0 = $array1, !1 = $array2, !2 = $missing
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   29     1        ASSIGN                                                   !1, <array>
   44     2        INIT_FCALL                                               'array_udiff'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DECLARE_LAMBDA_FUNCTION                          ~5      [0]
   46     6        SEND_VAL                                                 ~5
   44     7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !2, $6
   48     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ErtCp
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   44     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   45     2        INIT_FCALL                                               'strcmp'
          3        INIT_FCALL                                               'serialize'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        INIT_FCALL                                               'serialize'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                         $4      
         12      > RETURN                                                   $4
   46    13*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.36 ms | 1013 KiB | 17 Q