3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fish='1e-1000'; if ((int)$fish > 0) echo "ture"; if($fish < 0){ echo "ture2"; }else echo "false";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/CvB4p
function name:  (null)
number of ops:  11
compiled vars:  !0 = $fish
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1e-1000'
    3     1        CAST                                          4  ~2      !0
          2        IS_SMALLER                                               0, ~2
          3      > JMPZ                                                     ~3, ->5
    4     4    >   ECHO                                                     'ture'
    5     5    >   IS_SMALLER                                               !0, 0
          6      > JMPZ                                                     ~4, ->9
    6     7    >   ECHO                                                     'ture2'
          8      > JMP                                                      ->10
    8     9    >   ECHO                                                     'false'
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.04 ms | 1393 KiB | 13 Q