3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = get_defined_constants();foreach ($data as $constant => $value) { $flag = ! is_scalar(constant($constant)) && ! is_resource(constant($constant)) && constant($constant) !== null; if ($flag) { echo $constant; }}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 28
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 28
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 24
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 27
Branch analysis from position: 24
Branch analysis from position: 18
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/8tG3e
function name:  (null)
number of ops:  30
compiled vars:  !0 = $data, !1 = $value, !2 = $constant, !3 = $flag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'get_defined_constants'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
          3      > FE_RESET_R                                       $6      !0, ->28
          4    > > FE_FETCH_R                                       ~7      $6, !1, ->28
          5    >   ASSIGN                                                   !2, ~7
          6        INIT_FCALL                                               'constant'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                         $9      
          9        TYPE_CHECK                                  124  ~10     $9
         10        BOOL_NOT                                         ~11     ~10
         11      > JMPZ_EX                                          ~11     ~11, ->18
         12    >   INIT_FCALL                                               'constant'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        TYPE_CHECK                                  512  ~13     $12
         16        BOOL_NOT                                         ~14     ~13
         17        BOOL                                             ~11     ~14
         18    > > JMPZ_EX                                          ~11     ~11, ->24
         19    >   INIT_FCALL                                               'constant'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $15     
         22        TYPE_CHECK                                  1020  ~16     $15
         23        BOOL                                             ~11     ~16
         24    >   ASSIGN                                                   !3, ~11
         25      > JMPZ                                                     !3, ->27
         26    >   ECHO                                                     !2
         27    > > JMP                                                      ->4
         28    >   FE_FREE                                                  $6
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.42 ms | 1401 KiB | 20 Q