3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = array( [ 'UKM_Make' => 'Honda', 'UKM_Model' => 'XL', 'UKM_CCM ' => 600, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Honda', 'UKM_Model' => 'CR', 'UKM_CCM ' => 800, 'Year' => 2004, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Ford', 'UKM_Model' => 'Focus', 'UKM_CCM ' => 900, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ], [ 'UKM_Make' => 'Ford', // Dupe 'UKM_Model' => 'Focus', 'UKM_CCM ' => 900, 'Year' => 1999, 'UKM_Submodel' => 'V', 'UKM_StreetName' => 'Transap' ] ); $rows = array_map('unserialize', array_unique(array_map('serialize', $rows))); foreach(array_filter($rows, function($data) { return count(array_diff(explode(' ', 'Honda XL'), $data)) == 0; }) as $data) { var_dump($data); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/TrACF
function name:  (null)
number of ops:  26
compiled vars:  !0 = $rows, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   38     1        INIT_FCALL                                               'array_map'
          2        SEND_VAL                                                 'unserialize'
          3        INIT_FCALL                                               'array_unique'
          4        INIT_FCALL                                               'array_map'
          5        SEND_VAL                                                 'serialize'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
   40    13        INIT_FCALL                                               'array_filter'
         14        SEND_VAR                                                 !0
         15        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FTrACF%3A40%240'
   42    16        SEND_VAL                                                 ~7
         17        DO_ICALL                                         $8      
         18      > FE_RESET_R                                       $9      $8, ->24
         19    > > FE_FETCH_R                                               $9, !1, ->24
   43    20    >   INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
   40    23      > JMP                                                      ->19
         24    >   FE_FREE                                                  $9
   44    25      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FTrACF%3A40%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TrACF
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   RECV                                             !0      
   41     1        INIT_FCALL                                               'array_diff'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAL                                                 'Honda+XL'
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $2      
          9        COUNT                                            ~3      $2
         10        IS_EQUAL                                         ~4      ~3, 0
         11      > RETURN                                                   ~4
   42    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FTrACF%3A40%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.96 ms | 1400 KiB | 25 Q