3v4l.org

run code in 500+ PHP versions simultaneously
<?php enum ArrayKeys { case IncludeAll; } $array = [ 'empty' => '', 'enum' => ArrayKeys::IncludeAll, 'zero' => 0, 'one' => 1, 'null' => null, 'false' => false, 'true' => true, ]; var_export(array_keys($array, ArrayKeys::IncludeAll));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Br1a
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'arraykeys'
    6     1        INIT_ARRAY                                           ~1      '', 'empty'
    7     2        FETCH_CLASS_CONSTANT                                 ~2      'ArrayKeys', 'IncludeAll'
          3        ADD_ARRAY_ELEMENT                                    ~1      ~2, 'enum'
    8     4        ADD_ARRAY_ELEMENT                                    ~1      0, 'zero'
    9     5        ADD_ARRAY_ELEMENT                                    ~1      1, 'one'
    6     6        ADD_ARRAY_ELEMENT                                    ~1      null, 'null'
          7        ADD_ARRAY_ELEMENT                                    ~1      <false>, 'false'
          8        ADD_ARRAY_ELEMENT                                    ~1      <true>, 'true'
    5     9        ASSIGN                                                       !0, ~1
   15    10        INIT_FCALL                                                   'var_export'
         11        INIT_FCALL                                                   'array_keys'
         12        SEND_VAR                                                     !0
         13        FETCH_CLASS_CONSTANT                                 ~4      'ArrayKeys', 'IncludeAll'
         14        SEND_VAL                                                     ~4
         15        DO_ICALL                                             $5      
         16        SEND_VAR                                                     $5
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Class ArrayKeys: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.91 ms | 1569 KiB | 15 Q