3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aCustomers = [[ 'id' => '2953', 'id_suscriber' => '1', 'company_name' => 'SOMAB', 'company_fullname' => '', 'address1' => 'Rue des Pois, 25', 'address2' => '', 'country' => 'CH', 'zipcode' => '1234', 'locality' => 'Nyon', 'phone' => '', 'fax' => '', 'mail' => '', 'url' => '', 'language' => '', 'notice' => '', 'activity' => 'Fabrication d\'appareillage électrique basse tension.' ],[ 'id' => '2953', 'id_suscriber' => '1', 'company_name' => 'SOMAB', 'company_fullname' => '', 'address1' => 'Rue des Pois, 25', 'address2' => '', 'country' => 'CH', 'zipcode' => '1234', 'locality' => 'Nyon', 'phone' => '', 'fax' => '', 'mail' => '', 'url' => '', 'language' => '', 'notice' => '', 'activity' => 'Fabrication d\'appareillage électrique basse tension.' ]]; $aCustomers = array_map(fn($i) => array_intersect_key($i, ['company_name'=>'x', 'country'=>'x', 'locality'=>'x', 'phone'=>'x', 'fax'=>'x', 'mail'=>'x']), $aCustomers); print_r($aCustomers);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0leMa
function name:  (null)
number of ops:  11
compiled vars:  !0 = $aCustomers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   39     1        INIT_FCALL                                               'array_map'
          2        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          3        SEND_VAL                                                 ~2
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !0, $3
   41     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > 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/0leMa
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'array_intersect_key'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
          6*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.68 ms | 1001 KiB | 16 Q