3v4l.org

run code in 300+ PHP versions simultaneously
<?php const WTF=array(); if (defined('WTF') // Just a constant && ! is_scalar(WTF) // but is non scalar && WTF !== null // and is not null (it would be too easy) && ! is_resource(WTF) // and is non resource (surprised!) ) { echo "WTF! This is ", gettype(WTF); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 16
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/WpUmj
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'WTF', <array>
    7     1        DEFINED                                          ~0      'WTF'
          2      > JMPZ_EX                                          ~0      ~0, ->7
    8     3    >   FETCH_CONSTANT                                   ~1      'WTF'
          4        TYPE_CHECK                                  124  ~2      ~1
          5        BOOL_NOT                                         ~3      ~2
          6        BOOL                                             ~0      ~3
          7    > > JMPZ_EX                                          ~0      ~0, ->11
    9     8    >   FETCH_CONSTANT                                   ~4      'WTF'
          9        TYPE_CHECK                                  1020  ~5      ~4
         10        BOOL                                             ~0      ~5
         11    > > JMPZ_EX                                          ~0      ~0, ->16
   10    12    >   FETCH_CONSTANT                                   ~6      'WTF'
         13        TYPE_CHECK                                  512  ~7      ~6
         14        BOOL_NOT                                         ~8      ~7
         15        BOOL                                             ~0      ~8
         16    > > JMPZ                                                     ~0, ->21
   13    17    >   ECHO                                                     'WTF%21+This+is+'
         18        FETCH_CONSTANT                                   ~9      'WTF'
         19        GET_TYPE                                         ~10     ~9
         20        ECHO                                                     ~10
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.91 ms | 1394 KiB | 16 Q