3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pinned = 1; $fullTextEnabled = null; $updateMode = 0; $attributes = [ 'pinned' => $pinned, 'fullTextEnabled' => $fullTextEnabled, 'updateMode' => $updateMode ]; $diff = array_filter($attributes, is_null); var_dump($diff);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k2M0h
function name:  (null)
number of ops:  17
compiled vars:  !0 = $pinned, !1 = $fullTextEnabled, !2 = $updateMode, !3 = $attributes, !4 = $diff
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, null
    4     2        ASSIGN                                                   !2, 0
    6     3        INIT_ARRAY                                       ~8      !0, 'pinned'
    7     4        ADD_ARRAY_ELEMENT                                ~8      !1, 'fullTextEnabled'
    8     5        ADD_ARRAY_ELEMENT                                ~8      !2, 'updateMode'
    5     6        ASSIGN                                                   !3, ~8
   11     7        INIT_FCALL                                               'array_filter'
          8        SEND_VAR                                                 !3
          9        FETCH_CONSTANT                                   ~10     'is_null'
         10        SEND_VAL                                                 ~10
         11        DO_ICALL                                         $11     
         12        ASSIGN                                                   !4, $11
   13    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.57 ms | 1394 KiB | 17 Q