3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cost = 0; if ($cost === null || ($cost <= 50 && $cost !== 0)) echo 'fart';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 7
Branch analysis from position: 8
filename:       /in/09Sb2
function name:  (null)
number of ops:  11
compiled vars:  !0 = $cost
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        TYPE_CHECK                                    2  ~2      !0
          2      > JMPNZ_EX                                         ~2      ~2, ->8
          3    >   IS_SMALLER_OR_EQUAL                              ~3      !0, 50
          4      > JMPZ_EX                                          ~3      ~3, ->7
          5    >   IS_NOT_IDENTICAL                                 ~4      !0, 0
          6        BOOL                                             ~3      ~4
          7    >   BOOL                                             ~2      ~3
          8    > > JMPZ                                                     ~2, ->10
          9    >   ECHO                                                     'fart'
         10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1393 KiB | 13 Q