3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isset_array(&$value): bool { return @isset($value) && is_array($value); } echo $somevar; var_dump(isset_array($somevar)); echo $somevar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DNJ42
function name:  (null)
number of ops:  9
compiled vars:  !0 = $somevar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     !0
    9     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'isset_array'
          3        SEND_REF                                                 !0
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR                                                 $1
          6        DO_ICALL                                                 
   10     7        ECHO                                                     !0
   11     8      > RETURN                                                   1

Function isset_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/DNJ42
function name:  isset_array
number of ops:  11
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        BEGIN_SILENCE                                    ~1      
          2        ISSET_ISEMPTY_CV                                 ~2      !0
          3        END_SILENCE                                              ~1
          4      > JMPZ_EX                                          ~2      ~2, ->7
          5    >   TYPE_CHECK                                  128  ~3      !0
          6        BOOL                                             ~2      ~3
          7    >   VERIFY_RETURN_TYPE                                       ~2
          8      > RETURN                                                   ~2
    6     9*       VERIFY_RETURN_TYPE                                       
         10*     > RETURN                                                   null

End of function isset_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.9 ms | 1012 KiB | 15 Q