3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = 1; if( ! (array_key_exists( 'values', get_defined_vars()) && (is_array($values)))) { throw new Exception( implode(', ', [NULL, 'values', 'array', array_key_exists( 'values', get_defined_vars()) ? gettype($values) : 'none']) ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 29
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/1BLu4
function name:  (null)
number of ops:  30
compiled vars:  !0 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 1
    5     1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $2      
          3        ARRAY_KEY_EXISTS                                 ~3      'values', $2
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   TYPE_CHECK                                  128  ~4      !0
          6        BOOL                                             ~3      ~4
          7    >   BOOL_NOT                                         ~5      ~3
          8      > JMPZ                                                     ~5, ->29
    6     9    >   NEW                                              $6      'Exception'
    7    10        INIT_FCALL                                               'implode'
         11        SEND_VAL                                                 '%2C+'
         12        INIT_ARRAY                                       ~7      null
         13        ADD_ARRAY_ELEMENT                                ~7      'values'
         14        ADD_ARRAY_ELEMENT                                ~7      'array'
         15        INIT_FCALL                                               'get_defined_vars'
         16        DO_ICALL                                         $8      
         17        ARRAY_KEY_EXISTS                                         'values', $8
         18      > JMPZ                                                     ~9, ->22
         19    >   GET_TYPE                                         ~10     !0
         20        QM_ASSIGN                                        ~11     ~10
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~11     'none'
         23    >   ADD_ARRAY_ELEMENT                                ~7      ~11
         24        SEND_VAL                                                 ~7
         25        DO_ICALL                                         $12     
         26        SEND_VAR_NO_REF_EX                                       $12
         27        DO_FCALL                                      0          
         28      > THROW                                         0          $6
   10    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.09 ms | 1396 KiB | 17 Q