3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
184.8 ms | 3363 KiB | 15 Q