3v4l.org

run code in 300+ PHP versions simultaneously
<?php $discount_code = null; $discount_config = array( 'load_key' => 'discount_code', 'load_val' => $discount_code ); if (empty($discount_config) || !isset($discount_config['load_key']) || !isset($discount_config['load_val'])) { echo 'Unable to load discount class without any param!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 13
Branch analysis from position: 9
filename:       /in/v0tXN
function name:  (null)
number of ops:  16
compiled vars:  !0 = $discount_code, !1 = $discount_config
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    6     1        INIT_ARRAY                                       ~3      'discount_code', 'load_key'
    7     2        ADD_ARRAY_ELEMENT                                ~3      !0, 'load_val'
    5     3        ASSIGN                                                   !1, ~3
   11     4        ISSET_ISEMPTY_CV                                 ~5      !1
          5      > JMPNZ_EX                                         ~5      ~5, ->9
          6    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~6      !1, 'load_key'
          7        BOOL_NOT                                         ~7      ~6
          8        BOOL                                             ~5      ~7
          9    > > JMPNZ_EX                                         ~5      ~5, ->13
         10    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~8      !1, 'load_val'
         11        BOOL_NOT                                         ~9      ~8
         12        BOOL                                             ~5      ~9
         13    > > JMPZ                                                     ~5, ->15
   12    14    >   ECHO                                                     'Unable+to+load+discount+class+without+any+param%21'
   13    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.69 ms | 1398 KiB | 13 Q