3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.17 ms | 1007 KiB | 13 Q