3v4l.org

run code in 300+ PHP versions simultaneously
<?php $deep = 2; $a = $deep === true ? 5 : false; $b = is_int($deep) && $deep > 0 ? ($deep - 1) : false; $c = false; var_dump($a, $b, $c, ' = ', $a ?: $b ?: $c);
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 = 6
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
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: 11
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
Branch analysis from position: 11
filename:       /in/BYbET
function name:  (null)
number of ops:  30
compiled vars:  !0 = $deep, !1 = $a, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2
    3     1        TYPE_CHECK                                    8          !0
          2      > JMPZ                                                     ~5, ->5
          3    >   QM_ASSIGN                                        ~6      5
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~6      <false>
          6    >   ASSIGN                                                   !1, ~6
    4     7        TYPE_CHECK                                   16  ~8      !0
          8      > JMPZ_EX                                          ~8      ~8, ->11
          9    >   IS_SMALLER                                       ~9      0, !0
         10        BOOL                                             ~8      ~9
         11    > > JMPZ                                                     ~8, ->15
         12    >   SUB                                              ~10     !0, 1
         13        QM_ASSIGN                                        ~11     ~10
         14      > JMP                                                      ->16
         15    >   QM_ASSIGN                                        ~11     <false>
         16    >   ASSIGN                                                   !2, ~11
    5    17        ASSIGN                                                   !3, <false>
    6    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !1
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !3
         22        SEND_VAL                                                 '+%3D+'
         23        JMP_SET                                          ~14     !1, ->25
         24        QM_ASSIGN                                        ~14     !2
         25        JMP_SET                                          ~15     ~14, ->27
         26        QM_ASSIGN                                        ~15     !3
         27        SEND_VAL                                                 ~15
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.07 ms | 1391 KiB | 16 Q