3v4l.org

run code in 300+ PHP versions simultaneously
<?php $accessible = array('title', 'description', 'category_ids'); $accessible = array_fill(0, count($accessible) - 1, 0); print_r($accessible); return; $attributes = array('id' => 1, 'title' => 'Pippo', 'description' => 'Lollo', 'permalink' => 'ciao', 'author_id' => 3, 'category_ids' => array('ciao', 'come', 'va'), 'pippo' => null); print_r(array_intersect_key($attributes, $accessible)); print_r(array_diff_key($attributes, $accessible));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FRABo
function name:  (null)
number of ops:  29
compiled vars:  !0 = $accessible, !1 = $attributes
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 0
          3        COUNT                                            ~3      !0
          4        SUB                                              ~4      ~3, 1
          5        SEND_VAL                                                 ~4
          6        SEND_VAL                                                 0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !0, $5
    5     9        INIT_FCALL                                               'print_r'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    6    12      > RETURN                                                   null
    8    13*       ASSIGN                                                   !1, <array>
   10    14*       INIT_FCALL                                               'print_r'
         15*       INIT_FCALL                                               'array_intersect_key'
         16*       SEND_VAR                                                 !1
         17*       SEND_VAR                                                 !0
         18*       DO_ICALL                                         $9      
         19*       SEND_VAR                                                 $9
         20*       DO_ICALL                                                 
   11    21*       INIT_FCALL                                               'print_r'
         22*       INIT_FCALL                                               'array_diff_key'
         23*       SEND_VAR                                                 !1
         24*       SEND_VAR                                                 !0
         25*       DO_ICALL                                         $11     
         26*       SEND_VAR                                                 $11
         27*       DO_ICALL                                                 
         28*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.92 ms | 1395 KiB | 21 Q