3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! if (!empty($result) & $result !== NULL & $result !== null & $result !== 0 & $result !== '0' & $result !== '' & $result !== false ) { echo 'true'; } echo 'false';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/OvjuH
function name:  (null)
number of ops:  18
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ISSET_ISEMPTY_CV                                 ~1      !0
          1        BOOL_NOT                                         ~2      ~1
          2        TYPE_CHECK                                  1020  ~3      !0
          3        BW_AND                                           ~4      ~2, ~3
          4        TYPE_CHECK                                  1020  ~5      !0
          5        BW_AND                                           ~6      ~4, ~5
          6        IS_NOT_IDENTICAL                                 ~7      !0, 0
          7        BW_AND                                           ~8      ~6, ~7
          8        IS_NOT_IDENTICAL                                 ~9      !0, '0'
          9        BW_AND                                           ~10     ~8, ~9
         10        IS_NOT_IDENTICAL                                 ~11     !0, ''
         11        BW_AND                                           ~12     ~10, ~11
         12        TYPE_CHECK                                  1018  ~13     !0
         13        BW_AND                                           ~14     ~12, ~13
         14      > JMPZ                                                     ~14, ->16
    5    15    >   ECHO                                                     'true'
    7    16    >   ECHO                                                     'false'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.19 ms | 1393 KiB | 13 Q