3v4l.org

run code in 300+ PHP versions simultaneously
<?php $deep = true; if ($deep === true) { $deep = 5; } else if (is_int($deep) && $deep > 0) { $deep--; } else { $deep = false; } var_dump( $deep);
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 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/fNZbE
function name:  (null)
number of ops:  17
compiled vars:  !0 = $deep
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        TYPE_CHECK                                    8          !0
          2      > JMPZ                                                     ~2, ->5
    4     3    >   ASSIGN                                                   !0, 5
          4      > JMP                                                      ->13
    6     5    >   TYPE_CHECK                                   16  ~4      !0
          6      > JMPZ_EX                                          ~4      ~4, ->9
          7    >   IS_SMALLER                                       ~5      0, !0
          8        BOOL                                             ~4      ~5
          9    > > JMPZ                                                     ~4, ->12
    7    10    >   PRE_DEC                                                  !0
         11      > JMP                                                      ->13
   10    12    >   ASSIGN                                                   !0, <false>
   12    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.5 ms | 1395 KiB | 15 Q