3v4l.org

run code in 300+ PHP versions simultaneously
<?php $weight=6; $threshold=array('3.00'); echo($threshold); if(!empty($weight) && $weight >= $threshold && $threshold[0] !== NULL ){ echo("hola"); } else { echo("bye"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 8
filename:       /in/iBcOd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $weight, !1 = $threshold
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 6
    3     1        ASSIGN                                                   !1, <array>
    4     2        ECHO                                                     !1
    5     3        ISSET_ISEMPTY_CV                                 ~4      !0
          4        BOOL_NOT                                         ~5      ~4
          5      > JMPZ_EX                                          ~5      ~5, ->8
          6    >   IS_SMALLER_OR_EQUAL                              ~6      !1, !0
          7        BOOL                                             ~5      ~6
          8    > > JMPZ_EX                                          ~5      ~5, ->12
          9    >   FETCH_DIM_R                                      ~7      !1, 0
         10        TYPE_CHECK                                  1020  ~8      ~7
         11        BOOL                                             ~5      ~8
         12    > > JMPZ                                                     ~5, ->15
    6    13    >   ECHO                                                     'hola'
         14      > JMP                                                      ->16
    9    15    >   ECHO                                                     'bye'
   10    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.11 ms | 1393 KiB | 13 Q