3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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 = 18, Position 2 = 23
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/OqHfl
function name:  (null)
number of ops:  25
compiled vars:  !0 = $rows, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_map'
          1        SEND_VAL                                                 'unserialize'
          2        INIT_FCALL                                               'array_unique'
          3        INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'serialize'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        INIT_FCALL                                               'array_filter'
         13        SEND_VAR                                                 !0
         14        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FOqHfl%3A5%240'
    7    15        SEND_VAL                                                 ~6
         16        DO_ICALL                                         $7      
         17      > FE_RESET_R                                       $8      $7, ->23
         18    > > FE_FETCH_R                                               $8, !1, ->23
    8    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
    5    22      > JMP                                                      ->18
         23    >   FE_FREE                                                  $8
    9    24      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FOqHfl%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OqHfl
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     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
    7    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FOqHfl%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.6 ms | 1404 KiB | 25 Q