3v4l.org

run code in 300+ PHP versions simultaneously
<?php $constant = 'STDOUT'; if (constant($constant) && ! is_scalar($constant)) { echo 'Yes, I am non-scalar constant'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/sF8UQ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $constant
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'STDOUT'
    4     1        INIT_FCALL                                               'constant'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4      > JMPZ_EX                                          ~3      $2, ->8
          5    >   TYPE_CHECK                                  124  ~4      !0
          6        BOOL_NOT                                         ~5      ~4
          7        BOOL                                             ~3      ~5
          8    > > JMPZ                                                     ~3, ->10
    5     9    >   ECHO                                                     'Yes%2C+I+am+non-scalar+constant'
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.82 ms | 1394 KiB | 18 Q