3v4l.org

run code in 300+ PHP versions simultaneously
<?php $something = ""; if ( !$something ) { echo "Not Something".PHP_EOL; } if ( 0 == $something ) { echo "0 equals something".PHP_EOL; } if ( false == $something ) { echo "false equals something".PHP_EOL; } if ( null == $something ) { echo "false equals something".PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 4
filename:       /in/jk81l
function name:  (null)
number of ops:  14
compiled vars:  !0 = $something
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        BOOL_NOT                                         ~2      !0
          2      > JMPZ                                                     ~2, ->4
          3    >   ECHO                                                     'Not+Something%0A'
    4     4    >   IS_EQUAL                                                 !0, 0
          5      > JMPZ                                                     ~3, ->7
          6    >   ECHO                                                     '0+equals+something%0A'
    5     7    >   BOOL_NOT                                         ~4      !0
          8      > JMPZ                                                     ~4, ->10
          9    >   ECHO                                                     'false+equals+something%0A'
    6    10    >   IS_EQUAL                                                 !0, null
         11      > JMPZ                                                     ~5, ->13
         12    >   ECHO                                                     'false+equals+something%0A'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.43 ms | 1398 KiB | 13 Q