3v4l.org

run code in 300+ PHP versions simultaneously
<?php $deep = 20; var_dump(($deep === true ? 5 : false) ?: (is_int($deep) && $deep > 0 ? ($deep - 1) : false));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
Branch analysis from position: 12
filename:       /in/uqjVj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $deep
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 20
    3     1        INIT_FCALL                                               'var_dump'
          2        TYPE_CHECK                                    8          !0
          3      > JMPZ                                                     ~2, ->6
          4    >   QM_ASSIGN                                        ~3      5
          5      > JMP                                                      ->7
          6    >   QM_ASSIGN                                        ~3      <false>
          7    >   JMP_SET                                          ~4      ~3, ->18
          8        TYPE_CHECK                                   16  ~5      !0
          9      > JMPZ_EX                                          ~5      ~5, ->12
         10    >   IS_SMALLER                                       ~6      0, !0
         11        BOOL                                             ~5      ~6
         12    > > JMPZ                                                     ~5, ->16
         13    >   SUB                                              ~7      !0, 1
         14        QM_ASSIGN                                        ~8      ~7
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~8      <false>
         17    >   QM_ASSIGN                                        ~4      ~8
         18        SEND_VAL                                                 ~4
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.49 ms | 1387 KiB | 15 Q